No matching overload found
Phlox Icon <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
I can't understand why luabind is giving me this error. I have a function bound with: luabind::module( GetLua() ) [ luabind::class_<CGlobalEntityList>( "CGlobalEntityList" ) .def( "FindEntityByName", ( CBaseEntity *( CGlobalEntityList::* )( CBaseEntity *, const char *, CBaseEntity *, CBaseEntity *, CBaseEntity *, IEntityFindFilter * )) &CGlobalEntityList::FindEntityByName ) ]; to the function: // uses default arguments CBaseEntity *CGlobalEntityList::FindEntityByName( CBaseEntity *pStartEntity, const char *szName, CBaseEntity *pSearchingEntity, CBaseEntity *pActivator, CBaseEntity *pCaller, IEntityFindFilter *pFilter ) I have a CGlobalEntityList object called gEntList. I set NULL = 0 at the top of the file and made sure that it does equal 0. When I call the bound function using with the code: gEntList:FindEntityByName( NULL, szName, NULL, NULL, NULL, NULL ) When I run the code, I get the following error: [Lua-ERR] No matching overload found, candidates: CBaseEntity* FindEntityByName(CGlobalEntityList&,CBaseEntity*,char const*,CBaseEntity*,CBaseEntity*,CBaseEntity*,IEntityFindFilter*) This is really confusing because the first parameter in the message's function is CGlobalEntityList&. This was not what I defined with LuaBind earlier and no such function exists to match this definition. Is my binding code wrong somewhere? Thanks in advance. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user