]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
More generic.
authorageay <ageay>
Thu, 25 Feb 2010 17:48:11 +0000 (17:48 +0000)
committerageay <ageay>
Thu, 25 Feb 2010 17:48:11 +0000 (17:48 +0000)
src/INTERP_KERNEL/ExprEval/InterpKernelUnit.cxx
src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx

index 86d5dec515a97fb9cc77d07dee13a5d963f20b64..a123e6c95fab10510ccbabf9e6c3b01d6ee97b84 100644 (file)
@@ -272,7 +272,7 @@ bool DecompositionInUnitBase::areDoubleEquals(double a, double b)
 {
   if(a==0. || b==0.)
     return a==b;
-  double ref=fmax(a,b);
+  double ref=std::max(a,b);
   return fabs((a-b)/ref)<1e-7;
 }
 
index 4099113d04d1f2ef7abfa9f9ac15b2ce4f8e6e45..7f0c78bb8a1532fcf4ae85383a3f87be56db01d9 100644 (file)
@@ -393,7 +393,7 @@ Value *ValueDoubleExpr::max(const Value *other) const throw(INTERP_KERNEL::Excep
 {
   const ValueDoubleExpr *otherC=static_cast<const ValueDoubleExpr *>(other);
   ValueDoubleExpr *ret=new ValueDoubleExpr(_sz_dest_data,_src_data);
-  std::transform(_dest_data,_dest_data+_sz_dest_data,otherC->getData(),ret->getData(),std::ptr_fun(fmax));
+  std::transform(_dest_data,_dest_data+_sz_dest_data,otherC->getData(),ret->getData(),std::ptr_fun<const double&, const double&, const double& >(std::max));
   return ret;
 }
 
@@ -401,6 +401,6 @@ Value *ValueDoubleExpr::min(const Value *other) const throw(INTERP_KERNEL::Excep
 {
   const ValueDoubleExpr *otherC=static_cast<const ValueDoubleExpr *>(other);
   ValueDoubleExpr *ret=new ValueDoubleExpr(_sz_dest_data,_src_data);
-  std::transform(_dest_data,_dest_data+_sz_dest_data,otherC->getData(),ret->getData(),std::ptr_fun(fmin));
+  std::transform(_dest_data,_dest_data+_sz_dest_data,otherC->getData(),ret->getData(),std::ptr_fun<const double&, const double&, const double& >(std::min));
   return ret;
 }