ADL for AlmostEqual* and use math:: instead of base:: (#9634)

* ADL for AlmostEqual* and use math:: instead of base::

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-07 20:49:00 +02:00
committed by Konstantin Pastbin
parent 82133c5743
commit 30718e106e
175 changed files with 542 additions and 559 deletions

View File

@@ -857,8 +857,8 @@ void UpdateShapeInfos(std::vector<ShapeInfoPT> & shapeInfos, m2::PointD const &
for (ShapeInfoPT & info : shapeInfos)
{
if (base::AlmostEqualAbs(info.m_direction, newDir, kEps) ||
base::AlmostEqualAbs(info.m_direction, newDirReverse, kEps))
if (AlmostEqualAbs(info.m_direction, newDir, kEps) ||
AlmostEqualAbs(info.m_direction, newDirReverse, kEps))
{
for (auto const & color : colors)
info.m_colors.insert(color);
@@ -1254,7 +1254,7 @@ bool StopHasMultipleShapes(std::vector<ShapeInfoPT> const & shapeInfosIn,
{
auto const it =
std::find_if(shapeInfosOut.begin(), shapeInfosOut.end(), [&si](ShapeInfoPT const & so) {
return base::AlmostEqualAbs(si.m_direction, so.m_direction, kEps);
return AlmostEqualAbs(si.m_direction, so.m_direction, kEps);
});
if (it != shapeInfosOut.end())
++count;