mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
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:
committed by
Konstantin Pastbin
parent
82133c5743
commit
30718e106e
@@ -36,7 +36,7 @@ namespace generator
|
||||
{
|
||||
bool operator==(HierarchyEntry const & lhs, HierarchyEntry const & rhs)
|
||||
{
|
||||
return base::AlmostEqualAbs(lhs.m_center, rhs.m_center, 1e-7) &&
|
||||
return AlmostEqualAbs(lhs.m_center, rhs.m_center, 1e-7) &&
|
||||
(std::tie(lhs.m_id, lhs.m_parentId, lhs.m_depth, lhs.m_name, lhs.m_country, lhs.m_type) ==
|
||||
std::tie(rhs.m_id, rhs.m_parentId, rhs.m_depth, rhs.m_name, rhs.m_country, rhs.m_type));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user