Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-11-27 17:55:15


This is some great work.
I would like to see the following direction considered:

1. Rename fundamental components and integrate with operators.hpp:

postfix_inc_operator<T> -> incrementable<T>
postfix_dec_operator<T> -> decrementable<T>
member_operator<T> -> dereferenceable<T>

[I'd have done this myself but for some reason I didn't realize these
operators didn't have to be members]

2. Make use of addable<T, U> and subtractable<T, U> from operators.hpp

3. Find some way to automatically define the appropriate iterator tag based
on the helper base class being used (note that your test example sets up the
wrong iterator tag!) One approach would be to simply add (optional?)
template parameters that fill the other roles of the std::iterator<>
template. I'd love to hear of a better way.

-Dave


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