From 3f83c8e4a9ee0764dfb8bb27e083a3f72c19bac1 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 5 Apr 2025 07:13:49 -0500 Subject: [PATCH] IEM API provider should use std::string instead of std::string_view for abseil compatibility --- wxdata/source/scwx/provider/iem_api_provider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxdata/source/scwx/provider/iem_api_provider.cpp b/wxdata/source/scwx/provider/iem_api_provider.cpp index 66cdc5d6..817fbc2f 100644 --- a/wxdata/source/scwx/provider/iem_api_provider.cpp +++ b/wxdata/source/scwx/provider/iem_api_provider.cpp @@ -139,7 +139,7 @@ IemApiProvider::LoadTextProducts(const std::vector& textProducts) { auto parameters = cpr::Parameters {{"nolimit", "true"}}; - std::vector> + std::vector> asyncResponses {}; asyncResponses.reserve(textProducts.size()); @@ -163,7 +163,7 @@ IemApiProvider::LoadTextProducts(const std::vector& textProducts) if (response.status_code == cpr::status::HTTP_OK) { // Load file - auto productId = asyncResponse.first; + auto& productId = asyncResponse.first; std::shared_ptr textProductFile { std::make_shared()}; std::istringstream responseBody {response.text};