mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-06 04:37:55 +08:00
Coding - Rework of Math global functions to stl (#833)
Majority of functions now simply call same functions from std namespace. Functions that duplicate std namespace functionality are declared deprecated. Calls of deprecated functions are replaced with std functions calls.
This commit is contained in:
@@ -27,7 +27,7 @@ const Standard_Real infVal = Precision::Infinite();
|
||||
|
||||
static inline Standard_Real LimitInfinite(const Standard_Real Val)
|
||||
{
|
||||
return (Abs(Val) > infVal ? (Val > 0 ? infVal : -infVal) : Val);
|
||||
return (std::abs(Val) > infVal ? (Val > 0 ? infVal : -infVal) : Val);
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <IntRes2d_SequenceOfIntersectionSegment.hxx>
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
#define PARAMEQUAL(a, b) (Abs((a) - (b)) < (1e-8))
|
||||
#define PARAMEQUAL(a, b) (std::abs((a) - (b)) < (1e-8))
|
||||
|
||||
static void InternalVerifyPosition(IntRes2d_Transition& T1,
|
||||
IntRes2d_Transition& T2,
|
||||
|
||||
Reference in New Issue
Block a user