29 Jan
2008
29 Jan
'08
10:03 p.m.
Steven Watanabe wrote:
AMDG
Joseph Fradley wrote:
Steven,
Thank you, I'm trying it now. But I'm a confused as to what type of map to create from your line : map_.insert(std::make_pair("corner", &boost::bind(&Rectangle::corner, _1)));
I've just now read up on boost::bind and I can only see documentation of binding to member functions not member data. Could you elaborate?
Joe
boost::function
f = boost::bind(&Rectangle::corner, _1); Rectangle rect;
Point p = f(&rect); // equivalent to p = f.corner;
I think you meant: // equivalent to rect.corner Jeff Flinn