|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 1999-11-28 14:52:18
jsiek_at_[hidden] wrote on 11/28/99 2:03 AM
>Here's what iterator_ops.hpp looks like with the above suggestions:
I like it.
One minor quibble, and it's only with your test_iter, not with your
proposed boost code. Needs:
friend Distance operator - (const self& x, const self& y) {return x._i -
y._i;}
I especially like how Dave's addable automatically took care of:
friend self operator + (Distance n, const self& rhs);
For some reason I always forget that one.
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk