[Poppler-bugs] [Bug 34120] patches to build with gcc-2.96 on Red Hat Linux 7.1

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 10 18:47:05 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=34120

--- Comment #4 from William Bader <williambader at hotmail.com> 2011-02-10 18:47:05 PST ---
>I am confused by the [] -> at() change. I very much doubt this has nothing to
do with glibc since std::vector is not in the "C library" but in the "C++
library", right?

Yes, RedHat Linux 7.1 has version 3 of the gnu g++ library, and it contains a
1996 version of STL.  As far as I can tell, it does not make any version
numbers available as macros.  I searched all of the files in
/usr/include/g++-3.  If you have suggestions of what to test for, I can check
the files.

I was thinking to replace at() with [] unconditionally.  It should be safe
because at() is used in only two loops, and the upper limit of both loops is
the size() of the vector, so the bounds check provided by at() shouldn't be
necessary.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list