
Is there a good reason there's a separate tag hierarchy for iterators and sequences? Seems a bit redundant, as a random access sequence is surely just a sequence with random access iterators (?) -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams wrote:
Is there a good reason there's a separate tag hierarchy for iterators and sequences?
Seems a bit redundant, as a random access sequence is surely just a sequence with random access iterators (?)
Sequence tags may also inherit from associative_sequence_tag. So, it's not only traversal that's accounted for. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net

Joel de Guzman wrote:
David Abrahams wrote:
Is there a good reason there's a separate tag hierarchy for iterators and sequences?
Seems a bit redundant, as a random access sequence is surely just a sequence with random access iterators (?)
Sequence tags may also inherit from associative_sequence_tag. So, it's not only traversal that's accounted for.
Ok, they can be unified after all. Now we have only one traversal tag hierarchy for iterators and sequences. Thanks! Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (2)
-
David Abrahams
-
Joel de Guzman