21 Jul
2014
21 Jul
'14
8:57 a.m.
On 17/07/14 07:08, Michael Shepanski wrote:
for (const point &p: points.where(points->x < 4.0f)) std::cout << p.y << std::endl;
Look at the expression "points->x". "points" is the table. Its operator->() returns a pointer to that table's value mapper. points->x is a mapper for one part of points.
I see why you need a macro for that. I think you should decorrelate the expression type and the actual structure though.