Boost logo

Boost :

From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2006-09-29 05:36:45


Oops. I see Dave has already explained it much more clearly than I
have.

Sorry for the noise.

----Original Message----
> I think the problem is, should
> pair<int*,int*> a_pair_of_pointers;
>
> be treated the same as
> int* two_pointers[2];
> or the same as
> int an_array_of_ints[ pair.second-pair.first ]
>
> The first is the obvious answer if you treat the pair as a special
> form of tuple. The second is the obvious answer is you consider
> the pair as two iterators over a sequence (like the Boost Range
> library).

-- 
Martin Bonner
Martin.Bonner_at_[hidden]
Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ,
ENGLAND Tel: +44 (0)1223 203894

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