Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-13 07:37:08


No, sorry: the key feature of my example is the void in the middle.

The idea is to do g(f(1,2)) where f returns and g accepts void.

-Dave

----- Original Message -----
From: "Vladimir Voinkov" <voinkovv_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, November 13, 2001 4:53 AM
Subject: RE: [boost] bind functionality request

> Hi David,
>
> I compiled something like that:
>
> inline bool f(int x, int y)
> {
> return true;
> }
>
> inline char* g(bool x)
> {
> return "123";
> }
>
> boost::bind(g, boost::bind(f, 1, 2)());
>
> Is that you meant?
>
> -----Original Message-----
> From: David Abrahams [mailto:david.abrahams_at_[hidden]]
> Sent: Tuesday, November 13, 2001 8:19 AM
> To: boost
> Subject: [boost] bind functionality request
>
>
> 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?
>
> ===================================================
> David Abrahams, C++ library designer for hire
> resume: http://users.rcn.com/abrahams/resume.html
>
> C++ Booster (http://www.boost.org)
> email: david.abrahams_at_[hidden]
> ===================================================
>
>
>
> 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/
>
>
>
>
> 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