From b8e507538184436ccab63b9f538d96c8a60de7d6 Mon Sep 17 00:00:00 2001 From: Pedro Maciel Date: Fri, 6 Dec 2024 21:23:40 +0100 Subject: [PATCH] Cleanup (elbow grease) --- tests/unit/earthkit-regrid.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/earthkit-regrid.cc b/tests/unit/earthkit-regrid.cc index e7814db08..d8620110e 100644 --- a/tests/unit/earthkit-regrid.cc +++ b/tests/unit/earthkit-regrid.cc @@ -64,7 +64,9 @@ CASE("InterpolationSpec integration test") { // extract "interpolation" node from the dumped info auto info_interpolation = [](const auto& path) { auto value = eckit::YAMLParser::decodeFile(path); - return (std::ostringstream{} << value["interpolation"]).str(); + std::ostringstream ss; + ss << value["interpolation"]; + return ss.str(); };