Skip to content
Snippets Groups Projects
Commit a42d67bd authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[GenericGeometry::FieldHelper] Find abs() via argument-dependent lookup, or in std.

This is necessary to work with custom number types.  If they follow the
standard they are not allowed to put their overload of abs() into namespace
std.

Also, this avoids issues with the ordering of includes: if std::abs() is used,
the set of candidates for abs() is fixed when the compiler sees the
GenericGeometry::FieldHelper template.  If the header for the custom number
type is included later, any definition of abs() there won't be taken into
account, even if that header puts that definition into namespace std.  This is
not an issue with argumend-dependent lookup.
parent 8e38b347
No related branches found
No related tags found
1 merge request!11[GenericGeometry::FieldHelper] Find abs() via argument-dependent lookup, or in std.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment