
9 Feb
2010
9 Feb
'10
9:12 a.m.
OvermindDL1 wrote:
That boost::function is originally created at the time of the register call (and is also contained in the struct that is returned from the register call to skip a map lookup if you use it directly), but it contains another fusion apply struct template that specializes on the original passed in function, and dserializes each chunk in turn, then fusion invokes the actual function with the deserialized generated fusion vector of the arguments.
Thanks, much more clear already. How does the boost::function object know what kind of fusion::vector to deserialize? Do you keep some kind of extra mapping for argument-type to function-type? Cheers, Rutger