Boost logo

Boost :

Subject: Re: [boost] quince: queries in C++ expressions
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-07-21 04:57:40


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk