From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2007-11-02 04:59:16
On 11/2/07, gchen <chengang31_at_[hidden]> wrote:
> Marco wrote:
> > A new release of boost overload is out.
> > You can read more about boost overload here:
> > http://docs.google.com/Doc?id=dhd386mp_16gxsfxn
> > The documentation was kindly written down by Dean Michael Berris.
> Looks interesting. Just one naive question...
> If a overload variable can be set any function, why bother giving it a
> signature when declaring it?
That is because you need to know what signatures the overload instance
will support. In C++, you have no way of modifying a type at runtime
-- and that's why what you propose is nearly impossible if not
impractical to implement. This is the same reason why Boost.Function
needs this information as well, to know what signature it will expose
and support wrapping.
-- Dean Michael C. Berris Software Engineer, Friendster, Inc. [http://cplusplus-soup.blogspot.com/] [mikhailberis_at_[hidden]] [+63 928 7291459] [+1 408 4049523]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk