3 Feb
2006
3 Feb
'06
7:17 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Stephen Gross Sent: Friday, February 03, 2006 12:52 PM To: Boost Subject: [Boost-users] Bind/lambda arithmetic question
============================= struct Foo { double getX() const{ return 5; } double getY() const { return 10; } };
Foo f;
double z = (boost::bind(&Foo::getX, boost::ref(f)) / boost::bind(&Foo::getY, boost::ref(f))) (); ====================
[Nat] This might work better if you were to use boost::lambda::bind() rather than boost::bind()?