[cfe-dev] [libc++] Comparing vector<T*>::iterator to vector<T*>::const_iterator&

David Blaikie dblaikie at gmail.com
Fri Jul 22 23:41:41 PDT 2011

> My expectation was that libc++ silently convert iterator to const_iterator
> if necessary, but I guess I'm wrong.
> Any comments will be greatly appreciated.

Looks like you're right to expect that, by my reading: 23.2.1\4, Table
96, row 3:

Expression: X::iterator
Assertion/note pre-/post-condition: .... convertible to X::const_iterator.

More information about the cfe-dev mailing list