Boost logo

Boost :

From: Doug Gregor (gregod_at_[hidden])
Date: 2001-03-25 21:40:04


On Sunday 25 March 2001 09:23, you wrote:
> Some really good points here...
>
> On Sun, 25 Mar 2001, Doug Gregor wrote:
> gregod> How about:
> gregod>
> gregod> A[1 <= stride(1) < 2, 2 <= stride(2) <= 8]
>
> Is the comma here invoking operator, ?

Yes, it does. This way an arbitrary number of dimensions can be handled with
only one definition of the subscripting operator. If instead we used the
function call operator, we would need to add overloads for up to some
arbitrary number of dimensions.

        Doug


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