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

Ryuta Suzuki ryuuta at gmail.com
Sat Jul 23 17:26:39 PDT 2011


Hi Howard,

I verified the fix worked.  Thanks!

Regards,

Ryuta


On Sun, Jul 24, 2011 at 1:18 AM, Howard Hinnant <hhinnant at apple.com> wrote:

> Thanks!  Fix committed revision 135854.
>
> It was a problem with the pointer type of unordered_map::const_iterator.
>  It was value_type* and should have been const value_type*.
>
> Howard
>
> On Jul 23, 2011, at 9:05 AM, Ryuta Suzuki wrote:
>
> > Hi David,
> >
> > Thanks for the info. I filed the bug report.
> >
> > Regards,
> >
> > Ryuta
> >
> > On Sat, Jul 23, 2011 at 3:41 PM, David Blaikie <dblaikie at gmail.com>
> wrote:
> > > 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.
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110724/029e3843/attachment.html>


More information about the cfe-dev mailing list