Changeset 954 for trunk


Ignore:
Timestamp:
May 8, 2013 5:46:32 AM (7 years ago)
Author:
pbelotti
Message:

const_'ing iterators for compiling on mingw

File:
1 edited

Legend:

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

    r938 r954  
    115115      std::set <int> varNumIndices;
    116116
    117       for (std::set <std::pair <int, CouenneSparseVector *>, CouenneExprMatrix::compare_pair_ind>::iterator
     117      for (std::set <std::pair <int, CouenneSparseVector *>, CouenneExprMatrix::compare_pair_ind>::const_iterator
    118118             rowIt  = (*i) -> getRows (). begin ();
    119119           rowIt   != (*i) -> getRows (). end   (); ++rowIt) {
     
    121121        varNumIndices. insert (rowIt -> first);
    122122
    123         for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::iterator
     123        for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::const_iterator
    124124               elemIt  = rowIt -> second -> getElements () . begin ();
    125125             elemIt   != rowIt -> second -> getElements () . end   (); ++elemIt)
     
    131131      // parallel scanning of varNumINdices
    132132
    133       for (std::set <std::pair <int, CouenneSparseVector *>, CouenneExprMatrix::compare_pair_ind>::iterator
     133      for (std::set <std::pair <int, CouenneSparseVector *>, CouenneExprMatrix::compare_pair_ind>::const_iterator
    134134             rowIt  = (*i) -> getRows (). begin ();
    135135           rowIt   != (*i) -> getRows (). end   (); ++rowIt) {
     
    139139        std::set <int>::iterator vniIt = varNumIndices . begin ();
    140140
    141         for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::iterator
     141        for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::const_iterator
    142142               elemIt  = rowIt -> second -> getElements () . begin ();
    143143             elemIt   != rowIt -> second -> getElements () . end   (); ++elemIt) {
     
    207207#endif
    208208
    209     for (std::set <std::pair <int, CouenneSparseVector *> >::iterator
     209    for (std::set <std::pair <int, CouenneSparseVector *> >::const_iterator
    210210           j  = (*i) -> getCols () . begin ();
    211211         j   != (*i) -> getCols () . end   (); ++j)
Note: See TracChangeset for help on using the changeset viewer.