Boost logo

Boost :

From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-10-15 12:05:47


On Thu, 16 Oct 2003, Thorsten Ottosen wrote:
> but don't you have the static type information when one makes an assignment
> like
>
> boost::function<float (int x, int y)> f;struct int_div {
> float operator()(int x, int y) const { return ((float)x)/y; };
> };f = int_div;
>
> ?
>
> And couldn't that be saved for later eg. by type_info references ?

type_info references don't get you to an operator== when you need it. If
you haven't already, you should read the FAQ I referenced that (attempts
to) explain the problem.

        Doug


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