This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch dev-1-0-14 in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit ed60e6184bd548495353f70c195bc4d0512f55b2 Author: Alan M. Carroll <[email protected]> AuthorDate: Tue Mar 3 07:20:19 2020 -0600 Tweak to test std::tie. --- unit_tests/test_ip.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unit_tests/test_ip.cc b/unit_tests/test_ip.cc index e9e3e8e..a088e72 100644 --- a/unit_tests/test_ip.cc +++ b/unit_tests/test_ip.cc @@ -713,9 +713,11 @@ TEST_CASE("IPSpace docJJ", "[libswoc][ipspace][docJJ]") { // Check iterator copying. idx = 0; Space::iterator iter; + IPRange range; + PAYLOAD bits; for (auto spot = space.begin(); spot != space.end() ; ++spot) { iter = spot; - auto const& [range, bits]{*iter}; + std::tie(range, bits) = *iter; REQUIRE(idx < results.size()); CHECK(bits == make_bits(results[idx])); ++idx;
