Boost logo

Boost Users :

Subject: Re: [Boost-users] [Lambda] Using placeholders as array indices
From: user790 user790 (user790_at_[hidden])
Date: 2008-11-06 03:02:19


2008/11/5 Steven Watanabe <watanabesj_at_[hidden]>

>
> constant(a)[_1]...

Plugin it in the example I gave does not work:

int x = constant(a)[_1](0);

yields a compilation error (return' : cannot convert from 'const int' to
'int &).

Cheers,

P.



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