Boost logo

Boost :

From: gchen (chengang31_at_[hidden])
Date: 2007-11-02 04:47:14


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? Why not just:

     overload<> f;
     // or simply
     boost::overload f;

     f.set(&int_sum); // here automatic signature
     f.set(&float_inc); // deduction occurs

     f.set(&any_function);


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