Boost logo

Boost :

From: Vladimir Voinkov (voinkovv_at_[hidden])
Date: 2001-11-13 04:53:42


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/


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