You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by cm...@apache.org on 2024/03/05 15:33:32 UTC
(trafficserver) 08/08: test_ip: add iterator temporary for gcc release builds (#11124)
This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 6c5e0d84bca14361dcb86ba970ee2fbded59724c
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Mon Mar 4 09:42:25 2024 -0700
test_ip: add iterator temporary for gcc release builds (#11124)
(cherry picked from commit 7f32f4eba4c023971bbdd3e6d448480d3922a5d0)
---
lib/swoc/unit_tests/test_ip.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/swoc/unit_tests/test_ip.cc b/lib/swoc/unit_tests/test_ip.cc
index bb7eadfc31..178e85b72a 100644
--- a/lib/swoc/unit_tests/test_ip.cc
+++ b/lib/swoc/unit_tests/test_ip.cc
@@ -1253,7 +1253,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};