
29 Sep
2006
29 Sep
'06
9:36 a.m.
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@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 203894