gcc-3.4 tries to compile the _unused_ members of
authoralpar
Fri, 23 Jul 2004 12:27:24 +0000
changeset 7352859c45c31dd
parent 734 329832ac02b7
child 736 ba76a7f56b23
gcc-3.4 tries to compile the _unused_ members of
an instantiated template class
src/hugo/max_flow.h
     1.1 --- a/src/hugo/max_flow.h	Thu Jul 22 20:07:49 2004 +0000
     1.2 +++ b/src/hugo/max_flow.h	Fri Jul 23 12:27:24 2004 +0000
     1.3 @@ -418,8 +418,8 @@
     1.4      /// It can be called already after running \ref preflowPhase1.
     1.5      Num flowValue() const {
     1.6        Num a=0;
     1.7 -      for(InEdgeIt e(*g,t);g->valid(e);G.next(e)) a+=(*flow)[e];
     1.8 -      for(OutEdgeIt e(*g,t);g->valid(e);G.next(e)) a-=(*flow)[e];
     1.9 +      for(InEdgeIt e(*g,t);g->valid(e);g->next(e)) a+=(*flow)[e];
    1.10 +      for(OutEdgeIt e(*g,t);g->valid(e);g->next(e)) a-=(*flow)[e];
    1.11  
    1.12        //marci figyu: excess[t] epp ezt adja preflow 1. fazisa utan   
    1.13      }
    1.14 @@ -453,24 +453,6 @@
    1.15        case AFTER_NOTHING:
    1.16  	minMinCut(M);
    1.17  	break;
    1.18 -      case AFTER_AUGMENTING:
    1.19 -	for(g->first(v); g->valid(v); g->next(v)) {
    1.20 -	  if (level[v]) {
    1.21 -	    M.set(v, true);
    1.22 -	  } else {
    1.23 -	    M.set(v, false);
    1.24 -	  }
    1.25 -	}
    1.26 -	break;
    1.27 -      case AFTER_FAST_AUGMENTING:
    1.28 -	for(g->first(v); g->valid(v); g->next(v)) {
    1.29 -	  if (level[v]==number_of_augmentations) {
    1.30 -	    M.set(v, true);
    1.31 -	  } else {
    1.32 -	    M.set(v, false);
    1.33 -	  }
    1.34 -	}
    1.35 -	break;
    1.36        }
    1.37      }
    1.38