0
0
mirror of https://github.com/google/googletest.git synced 2025-03-21 11:53:47 +00:00
Zhanyong Wan 4ee4b17bf5 Allow DistanceFrom() to use user-defined abs() by default.
`std::abs()` doesn't work on custom types. While one can use the 3-argument version of `DistanceFrom()` to specify how to compute the distance, it's not as convenient as defining `abs()` for the custom type once in the type's namespace and then use the 2-argument version.

PiperOrigin-RevId: 735741409
Change-Id: If8fb668455eb963a2ccf089f7467c64965a2e7a6
2025-03-11 06:58:43 -07:00
..
2021-06-02 17:55:09 -04:00
2021-05-25 13:34:39 -04:00
2021-02-19 13:55:48 -05:00
2021-02-19 13:55:48 -05:00
2023-09-14 10:37:04 -07:00
2021-02-26 17:58:04 -05:00
2023-06-19 11:21:44 -06:00
2024-12-11 08:00:11 -08:00