[LLVMbugs] [Bug 13925] Qt's QList iterators and std::distance.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 26 07:45:14 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13925

Howard Hinnant <hhinnant at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Howard Hinnant <hhinnant at apple.com> 2012-09-26 09:45:14 CDT ---
Does QList<char>::iterator have a nested signed integral type named
difference_type?  Or is there a specialization of
std::iterator_traits<QList<char>::iterator> that contains difference_type?

According to this documentation:

http://doc.qt.digia.com/4.7-snapshot/qlist-const-iterator.html

the answer is no.

This conversation:

http://lists.trolltech.com/qt-interest/2006-03/thread00618-0.html

indicates you are not the first one to discover that QList<char>::iterator
isn't a std-conforming iterator.  std::distance won't work with
QList<char>::iterator for any implementation of std::distance.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list