Re: Singleton class produces "No matching overload found" when tagged

Kristoffer Danielsson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Solved it. You can ignore this thread. Thanks :P



From: [email protected]
To: [email protected]
Date: Sun, 4 Jul 2010 22:45:06 +0200
Subject: [luabind] Singleton class produces "No matching overload found" when tagged



 
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!



Kom närmare dina vänner. Ring videosamtal med Messenger. Klicka här! 		 	   		  
_________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.