
16 Nov
2012
16 Nov
'12
9:03 p.m.
Yanchenko Maxim wrote:
17.11.2012, 02:47, "Peter Dimov" <lists@pdimov.com>:
Yakov Galka wrote:
I would attack this problem in a different way. There should be a contiguous_iterator_tag : random_access_iterator_tag in the standard, ... This deserves a standard proposal, IMO.
Isn't just an std::is_pointer<> enough to make a choice?
No, because vector<>::iterator is not guaranteed to be a pointer, and isn't, on many implementations. Similarly, string::iterator is not guaranteed to be char* (but often is).