|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-02-03 14:17:47
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] 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()?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net