$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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()?