This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit b5058b709a3eb255e8083bc51005f897d6f671a8 Author: Brian Neradt <[email protected]> AuthorDate: Tue Mar 19 18:11:29 2024 +0000 test_ip: add iterator temporary for gcc release builds (#11124) (cherry picked from commit 7f32f4eba4c023971bbdd3e6d448480d3922a5d0) --- unit_tests/test_ip.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/test_ip.cc b/unit_tests/test_ip.cc index 28291b5..f848978 100644 --- a/unit_tests/test_ip.cc +++ b/unit_tests/test_ip.cc @@ -1252,7 +1252,8 @@ TEST_CASE("IPSpace Edge", "[libswoc][ipspace][edge]") { auto &v1 = *spot; auto &p1 = get<1>(v1); - if (auto &&[r, p] = *(cspace.find(a1)); !r.empty()) { + auto const iter = cspace.find(a1); + if (auto &&[r, p] = *iter; !r.empty()) { static_assert(std::is_same_v<swoc::IPRangeView const &, decltype(r)>); IPRange rr = r; swoc::IPRangeView rvv{r};
