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 27269baf775e173d02a30b3539ac7e4c23e781d7 Author: Brian Neradt <[email protected]> AuthorDate: Tue Oct 7 22:48:43 2025 +0000 test_ip.cc updates --- unit_tests/test_ip.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unit_tests/test_ip.cc b/unit_tests/test_ip.cc index 9737aca..8cfb9fe 100644 --- a/unit_tests/test_ip.cc +++ b/unit_tests/test_ip.cc @@ -9,6 +9,7 @@ #include <set> #include <iostream> +#include <type_traits> #include "swoc/TextView.h" #include "swoc/swoc_ip.h" @@ -1239,11 +1240,11 @@ TEST_CASE("IPSpace Edge", "[libswoc][ipspace][edge]") { auto const &cspace = space; if (auto [r, p] = *(cspace.find(a1)); !r.empty()) { Thing const &cp = p; - static_assert(std::is_const_v<typeof(cp)>, "Payload was expected to be const."); + static_assert(std::is_const_v<typename std::remove_reference<decltype(cp)>::type>, "Payload was expected to be const."); REQUIRE(false); // Checking this syntax doesn't copy the payload. } if (auto [r, p] = *(cspace.find(a1)); !r.empty()) { - static_assert(std::is_const_v<typeof(p)>, "Payload was expected to be const."); + static_assert(std::is_const_v<typename std::remove_reference<decltype(p)>::type>, "Payload was expected to be const."); REQUIRE(false); // Checking this syntax doesn't copy the payload. }
