Clean up syntax for build_function_caller to allow for further use of it better

This commit is contained in:
Jason Turner
2009-06-21 17:20:26 +00:00
parent 75431a052b
commit d4ec79607f
4 changed files with 20 additions and 6 deletions

View File

@@ -157,7 +157,7 @@ int main()
//Build a bound function proxy for calling the script handled function
boost::function<void (Test &)> show_message =
build_function_caller<void, Test &>(ss.get_function("show_message"));
build_function_caller<void (Test &)>(ss.get_function("show_message"));
Test &t = Cast_Helper<Test &>()(ss.get_object("testobj2"));