
On 11/2/07, gchen <chengang31@gmail.com> 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@gmail.com] [+63 928 7291459] [+1 408 4049523]