Fix usages of std::min and std::max to be windows safe (#4887)

This commit is contained in:
Thad House
2022-12-31 12:00:45 -08:00
committed by GitHub
parent c11bd2720f
commit b632b288a3
6 changed files with 9 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ T RKDP(F&& f, T x, U u, units::second_t dt, double maxError = 1e-6) {
while (dtElapsed < dt.value()) {
do {
// Only allow us to advance up to the dt remaining
h = std::min(h, dt.value() - dtElapsed);
h = (std::min)(h, dt.value() - dtElapsed);
// clang-format off
T k1 = f(x, u);