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 &).



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at