diff -r da93692e6537 -r 68ce4302fb0b demo/lp_maxflow_demo.cc --- a/demo/lp_maxflow_demo.cc Wed Jul 20 08:01:16 2005 +0000 +++ b/demo/lp_maxflow_demo.cc Wed Jul 20 08:02:11 2005 +0000 @@ -82,12 +82,11 @@ } //Objective function: the flow value entering 't' - { - LpDefault::Expr ex; - for(InEdgeIt e(g,t);e!=INVALID;++e) ex+=x[e]; - for(OutEdgeIt e(g,t);e!=INVALID;++e) ex-=x[e]; - lp.setObj(ex); - } + LpDefault::Expr obj; + for(InEdgeIt e(g,t);e!=INVALID;++e) obj+=x[e]; + for(OutEdgeIt e(g,t);e!=INVALID;++e) obj-=x[e]; + lp.setObj(obj); + //Maximization lp.max();