boost::bind on luabind::call_function

piers august <[email protected]> Fri, 1 Feb 2013 15:04:24 +0000
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hi,

I want to bind 
template<class Ret>
Ret call_function(lua_State* L, const char* name, ...)
with boost::bind for calling boost::asio::io_service::post but get 
 error: address of overloaded function with no contextual type information
from this line of code:

ioService_.post( boost::bind( (void (*)(lua_State*,const char*,...)) &luabind::call_function<void>, L));

Wrapping the call to luabind::call_function in a function and posting that to io_service (with bind) works fine but I don't want to create a wrapper function for the range of argument lists and types.

details
BOOST_LIB_VERSION=1_48
LUA_VERSION_NUM=501
LUABIND_VERSION=900
G++ VERSION=4.4.6 20110731 (Red Hat 4.4.6-3)

Thanks

Piers

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user