|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-13 03:26:40
The following short program doesn't compile:
#include <boost/bind.hpp>
struct X
{
int f(const char*);
};
X x;
int y = boost::bind(&X::f, &x, _1)("hello"); // OK
int z = boost::bind(&X::f, _1, "hello")(&x); // not OK
Shouldn't 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]
===================================================
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk