Boost logo

Boost :

From: Marco Costalba (mcostalba_at_[hidden])
Date: 2008-03-26 14:48:18


While I was reading the very nice Dynamic Dispatcher Library by Dean
Michael Berris (dispatcher-0.2.zip in Vault) I realized that it is
possible to magically ;-) get a runtime dynamic dispatcher out of the
overload library simply using a container to store overloads !

More, the dispatcher you get is multi-signature (heterogeneous
function types), instead of homogeneous function type as is the Dean's
one.

The key enabler is that class overload has value semantic.

Of course with the Dean's one you get more, in particularly you get:

- Strategized Index Validation

- Strategized Routing

- Scheduled/Sequenced Invocation

But if you are not interested in this additional features you can give
overload a try. I have updated the docs and the examples in Vault
(overload_26_3_2008.zip) to reflect this new "discovery" ;-)

Dean, I' didn't realized this use of overload as a dispatcher until
reading your code, are you still interested in a multi-signature
dispatcher?

Thanks
Marco


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk