|
Boost : |
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2006-10-19 13:46:01
Hi Sohail,
On 10/20/06, Sohail Somani <s.somani_at_[hidden]> wrote:
>
> Is it not possible at all to have a d(1,2,3) interface?
>
> With the tuples, you are specifying the interface already.
>
I'm not sure what you mean by `d(1, 2, 3)'... If you have something like:
void function(int a, int b, int c) {
// do something with a, b, and c
};
dispatcher<void(int, int, int)> d;
d[0] = &function;
d[0](1, 2, 3);
Then definitely that's possible.
> It would be more natural.
Can you elaborate on what you mean so that I don't misunderstand what you mean?
-- Dean Michael C. Berris C++ Software Architect Orange and Bronze Software Labs, Ltd. Co. web: http://software.orangeandbronze.com/ email: dean_at_[hidden] mobile: +63 928 7291459 phone: +63 2 8943415 other: +1 408 4049532 blogs: http://mikhailberis.blogspot.com http://3w-agility.blogspot.com http://cplusplus-soup.blogspot.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk