X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingTimeDiscretization.cxx;h=d0708847221264ec89b0d220495c83f75518149f;hb=e7a9d4f59978fd384ee98db1dfdd5ec2118331ca;hp=873193aba4edba2031c1e08a4854d4cb9d772288;hpb=f2ab61e92f55ee52cf5196f7904f625d93c8c2d0;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx index 873193aba..d07088472 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx @@ -2542,9 +2542,9 @@ void MEDCouplingLinearTime::getValueForTime(double time, const std::vector(),alpha)); + std::transform(vals.begin(),vals.begin()+nbComp,res,std::bind(std::multiplies(),std::placeholders::_1,alpha)); std::vector tmp(nbComp); - std::transform(vals.begin()+nbComp,vals.end(),tmp.begin(),std::bind2nd(std::multiplies(),1-alpha)); + std::transform(vals.begin()+nbComp,vals.end(),tmp.begin(),std::bind(std::multiplies(),std::placeholders::_1,1-alpha)); std::transform(tmp.begin(),tmp.end(),res,res,std::plus()); } @@ -2556,13 +2556,13 @@ void MEDCouplingLinearTime::getValueOnTime(mcIdType eltId, double time, double * else throw INTERP_KERNEL::Exception("No start array existing."); std::size_t nbComp=_array->getNumberOfComponents(); - std::transform(value,value+nbComp,value,std::bind2nd(std::multiplies(),alpha)); + std::transform(value,value+nbComp,value,std::bind(std::multiplies(),std::placeholders::_1,alpha)); std::vector tmp(nbComp); if(_end_array) _end_array->getTuple(eltId,&tmp[0]); else throw INTERP_KERNEL::Exception("No end array existing."); - std::transform(tmp.begin(),tmp.end(),tmp.begin(),std::bind2nd(std::multiplies(),1-alpha)); + std::transform(tmp.begin(),tmp.end(),tmp.begin(),std::bind(std::multiplies(),std::placeholders::_1,1-alpha)); std::transform(tmp.begin(),tmp.end(),value,value,std::plus()); }