|
Boost Users : |
Subject: Re: [Boost-users] [Lambda] Using placeholders as array indices
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-05 12:47:39
AMDG
user790 user790 wrote:
> 2008/11/5 Eric MALENFANT <Eric.Malenfant_at_[hidden]
> <mailto:Eric.Malenfant_at_[hidden]>>
>
> I did not try to understand why what's written above does not
> work, but it seems to me that writing the lambda as this would
> produce the intended result:
> (var(a)[_1])(0) = 1;
>
>
> Indeed, thanks!
>
> I was just about to answer that this does not solve the general
> problem of using placeholders as indices as this assumes the array is
> a left-value.
constant(a)[_1]...
In Christ,
Steven Watanabe
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