diff options
author | Derek Mauro <dmauro@google.com> | 2023-01-24 16:40:51 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-24 16:41:35 (GMT) |
commit | 544c96ed5b0fb97ef867c38fbe204df2eaa02d2b (patch) | |
tree | fa87f8efdceda982c4d48399e33646f06875913e /googletest/include/gtest/internal/gtest-port.h | |
parent | ec25eea8f8237cf86c30703f59747e42f34b6f75 (diff) | |
download | googletest-544c96ed5b0fb97ef867c38fbe204df2eaa02d2b.zip googletest-544c96ed5b0fb97ef867c38fbe204df2eaa02d2b.tar.gz googletest-544c96ed5b0fb97ef867c38fbe204df2eaa02d2b.tar.bz2 |
Remove FloatingPoint::Max() in favor of std::numeric_limits::max()
In #4113 a user says Max clashes with a macro. Since it is only used in
a test, use std::numeric_limits::max() instead.
Note that in headers, the macro issue can be mitigated with
parenthesis like this: `(std::numeric_limits<T>::max)()`
PiperOrigin-RevId: 504284906
Change-Id: Ibf430caec1a6afdf6b303534fec6a4fd00a6373f
Diffstat (limited to 'googletest/include/gtest/internal/gtest-port.h')
0 files changed, 0 insertions, 0 deletions