Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-29 20:09:42


AMDG

Vjekoslav Brajkovic wrote:
> I am somewhat new to Boost Fusion and MPI, therefore I apologize if
> I am
> asking a trivial question (I wasn't able to the answer). I have a
> map of
> <mpl::int_<N>, boost::function> pairs. Each integer is a command,
> and based
> on that command I would like call some specific function. However,
> after
> debugging through the code, I have realized that the callbacks are not
> compile time. So, I was wondering if anybody could tell me if there
> is a way
> of modifying my code in such a manner that there is no run-time
> overhead
> associated with map indexing. Here is an example code.

How do you get the argument for the function?
The integral key is only known at runtime, so the
type of the argument must only be known at runtime, too.
Am I missing something?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net