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 ","
rules.
so that f, will be called before g.

  -gary-

-----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
notation.

--
Peter Dimov
Multi Media Ltd.
Info: http://www.boost.org  Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

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