Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2004-07-22 01:56:23

GCC 3.4.1 complains with this absolutely clear run-time message

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
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

< RCIterator rfirst(last), rlast(first), rmin(min), rmax(max);

>   RCIterator rfirst(last), rlast(first), rmin, rmax;

Boost list run by bdawes at, gregod at, cpdaniel at, john at