Squirrel
The programming language
Welcome to Squirrel
Sign in
|
Join
|
Help
in
Bindings (forum)
General (group)
(Entire Site)
Search
Home
Forums
Squirrel
»
General
»
Bindings
»
Sqrat to boost function?
Sqrat to boost function?
Last post 01-13-2010, 2:33 AM by
Lephyrius
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
01-12-2010, 8:03 AM
3608
Lephyrius
Joined on 03-29-2009
Posts 16
Sqrat to boost function?
Reply
Quote
I use boost function for callbacks in my game. Problem is I don't know how could I bind them to Squirrel function using Sqrat?
I don't want to create two different callback systems so I think that a wrapper or adapter would be best.
Report abuse
01-13-2010, 2:33 AM
3611
in reply to
3608
Lephyrius
Joined on 03-29-2009
Posts 16
Re: Sqrat to boost function?
Reply
Quote
I found an answer:
boost::bind( static_cast<void (Sqrat::Function::*)( const Event& )>(&Sqrat::Function::Execute<const Event&>),function, _1)
Report abuse
Alberto Demichelis 2003-2008