![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <js_call.h>
Public Types | |
|
typedef boost::function < Return(Args...)> | Fn |
Static Public Member Functions | |
| static Return | call (const Fn &fn, const JS::JSArgs &args) |
call a boost::function from JS, variardic version with a non-void return type.
There is some funky template magic that has to happen here. In order to know which argument to unpack, we need to turn our list of Args... (which have no position encoded) into a list of InPosition<position, arg> which encodes the position within the type.
1.7.6.1