Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-13 08:19:24


From: "David Abrahams" <david.abrahams_at_[hidden]>
> I tried to do something like this today:
>
> void f(int x, int y);
> char* g();
> bind(g, bind(f, 1, 2));
>
> It didn't work. Could we make it work?

We can but it's against the rules.

g(f(1, 2)) doesn't work; so the bound version refuses to work, too. 'void'
in the parameter list is not a type but a syntactic abom... er, alternative
notation.

--
Peter Dimov
Multi Media Ltd.

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