
GCC 3.4.1 complains with this absolutely clear run-time message (http://tinyurl.com/42bey): error: attempt to copy-construct an iterator from a singular iterator I've inspected the code of minmax_element_test.cpp and think the problem lies in lines 106-107: CIterator min, max; RCIterator rfirst(last), rlast(first), rmin(min), rmax(max); where rmin and rmax are copy-constructed from min,max, which are singular. Anyone sees a problem in fixing this? (Please find diff below.) I don't have GCC 3.4.1 available, so I can only guess this will clear the problem away. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo 107c107 < RCIterator rfirst(last), rlast(first), rmin(min), rmax(max); ---
RCIterator rfirst(last), rlast(first), rmin, rmax;

On Jul 22, 2004, at 2:56 AM, Joaquín Mª López Muñoz wrote:
107c107 < RCIterator rfirst(last), rlast(first), rmin(min), rmax(max); ---
RCIterator rfirst(last), rlast(first), rmin, rmax;
Joaquin: I thought I committed that patch yesterday. If not, my mistake, you can go ahead. I always "cvs update" before committing so I will see it. -- Hervé
participants (2)
-
Hervé Brönnimann
-
Joaquín Mª López Muñoz