Re: [luabind] Trouble with function signature...
Brought to you by:
arvidn,
daniel_wallin
From: Arvid N. <c9...@cs...> - 2004-06-29 22:36:37
|
Tom Spilman wrote: > I have some functions exported with the signature... > > void myfunction( myclass* class_ptr ); > void myfunction( myclass* class_ptr, object source, object dest ); > > When I run the lua code... > > local the_class = myclass() > local source = { x = 0, y = 0 } > local dest = { x = 1, y = 1 } > myfunction( the_class, source, dest ) > > I get the following error from luabind... > > no match for function call 'myfunction' with the > parameters (myclass, table, table) > > candidates are: > myfunction(myclass*) > myfunction(myclass*, object, object) > > I think (myclass, table, table) is the same as (myclass*, object, > object)... isn't it. It seems like it should resolve just fine yet it > doesn't. I've tried making the signature (myclass*, const object&, const > object&), but that doesn't seem to work either. > > I'm using RC3 from the zip file posted here on the list a few weeks back. > I'm gonna grab the beta7-devel branch here in a bit and try that. > > Tom We'll have to look into this, but both me and Daniel are very busy right now. I've put your report in our todo-pile though. Thanks for reporting. -- Arvid Norberg |