Boost logo

Boost :

From: Gary Powell (powellg_at_[hidden])
Date: 2001-11-13 11:05:26

Besides you could do this with the operator,() in LL

  (bind(f,1,2), bind(g))
(Which BTW doesn't follow the function calling rules but rather the ","
so that f, will be called before g.


-----Original Message-----
From: Peter Dimov [mailto:pdimov_at_[hidden]]
Sent: Tuesday, November 13, 2001 5:19 AM
To: boost_at_[hidden]
Subject: Re: [boost] bind functionality request

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

Peter Dimov
Multi Media Ltd.
Info:  Unsubscribe:
Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at