From e0a4ccc5707db86c7a4cf9f4ce48423be08676d6 Mon Sep 17 00:00:00 2001 From: Anthony Romaniello <66272872+aromanielloNTIA@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:21:07 -0500 Subject: [PATCH] Consistent use of std::size_t --- app/src/DriverUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/DriverUtils.cpp b/app/src/DriverUtils.cpp index b4c5e56..7071037 100644 --- a/app/src/DriverUtils.cpp +++ b/app/src/DriverUtils.cpp @@ -15,6 +15,7 @@ #include // for std::transform #include // for std::tolower +#include // for std::size_t #include // for localtime_{s,r}, std::{time, time_t, tm, strftime} #include // for std::setfill, std::setw #include // for std::cerr, std::endl @@ -97,7 +98,7 @@ DrvrReturnCode ParseDouble(const std::string &str, double &value) { ******************************************************************************/ DrvrReturnCode ParseInteger(const std::string &str, int &value) { try { - size_t pos; + std::size_t pos; value = std::stoi(str, &pos, 10); // Verify the entire string was parsed