Replace std::to_string() with fmt::format() (#3451)

This commit is contained in:
Tyler Veness
2021-06-19 09:30:01 -07:00
committed by GitHub
parent 73fcbbd748
commit 7aae2b72dc
9 changed files with 21 additions and 27 deletions

View File

@@ -28,7 +28,7 @@
#include "frc/trajectory/TrajectoryParameterizer.h"
#include <string>
#include <fmt/format.h>
#include "units/math.h"
@@ -193,9 +193,9 @@ Trajectory TrajectoryParameterizer::TimeParameterizeTrajectory(
// delta_x = v * t
dt = ds / v;
} else {
throw std::runtime_error("Something went wrong at iteration " +
std::to_string(i) +
" of time parameterization.");
throw std::runtime_error(fmt::format(
"Something went wrong at iteration {} of time parameterization.",
i));
}
}