Singleton class produces "No matching overload found" when tagged
Kristoffer Danielsson <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
luabind::module(L)
[
luabind::class_<boost::RegEx>("Regex")
.def("set", luabind::tag_function<void(boost::RegEx&, const char*)>(boost::bind(&LuaHelper::SetExpression, this, _1, _2)))
];
luabind::globals(L)["Regex"] = &m_regex;
LUA:
Regex:set('test')
Luabind tells me this:
No matching overload found, candidates:
void set(custom [class Script]*,Regex&,char const*)
Sure I can make luabind aware of class Script, but it shouldn't be required. I have several tagged functions that accept a Script-pointer without producing an error.
I believe this has something to do with the global-stuff. Any ideas?
Please help!
_________________________________________________________________
Dela fler filer med nya Hotmail (upp till 10 GB i ett mejl). Klicka här!
http://explore.live.com/windows-live-hotmail
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user