Changeset 958 for trunk


Ignore:
Timestamp:
May 23, 2013 10:27:28 PM (7 years ago)
Author:
pbelotti
Message:

hopefully fixed the last const_iterator problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/cut/sdpcuts/CutGen.cpp

    r956 r958  
    109109  int indI = 0;
    110110
    111  
    112111  for (std::set <std::pair <int, CouenneSparseVector *>, CouenneExprMatrix::compare_pair_ind>::const_iterator
    113112         i  = minor -> getRows () . begin ();
     
    122121      indJ   = 0;
    123122
    124     for (std::set <CouenneScalar *>::const_iterator
    125            j  = (*i) . second -> getElements () . begin ();
    126          j   != (*i) . second -> getElements () . end   (); ++j, ++indJ) {
     123    //replace with for (k=0; k<i -> second -> getElements () . size (); ++i)
     124
     125    for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::const_iterator
     126           j  = i -> second -> getElements () . begin ();
     127         j   != i -> second -> getElements () . end   (); ++j, ++indJ) {
    127128
    128129#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.