From bddc486aeb08ab4c2a7bd610a9c66d8b052bc137 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Fri, 22 Apr 2022 23:39:18 -0500 Subject: [PATCH] Clarify "breaker" -> regex "pattern" --- src/read_input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read_input.cpp b/src/read_input.cpp index f042205..c821689 100644 --- a/src/read_input.cpp +++ b/src/read_input.cpp @@ -74,8 +74,8 @@ void graph::read(std::string filename) { std::vector stovi (const std::string &s) { // Create the number classifier - std::regex breaker("[0-9]+"); - std::sregex_token_iterator first{s.begin(), s.end(), breaker, 0}, last; + std::regex pattern("[0-9]+"); + std::sregex_token_iterator first{s.begin(), s.end(), pattern, 0}, last; // Match the numbers std::vector res; for (auto i = first; i != last; ++i) res.push_back(atoi(i->str().c_str()));