Use more C++17 features
Mainly structured bindings, inline variables, and class template
argument deduction, plus many more smaller things.
Change-Id: I810d17e0adb470426e4e30c898e03b3140ad052f
diff --git a/tests/daemon/table/pit.t.cpp b/tests/daemon/table/pit.t.cpp
index 03438d4..defa768 100644
--- a/tests/daemon/table/pit.t.cpp
+++ b/tests/daemon/table/pit.t.cpp
@@ -336,9 +336,9 @@
for (const auto& pitEntry : pit) {
actual.insert(&pitEntry.getInterest());
}
- std::set<const Interest*> expected = {interestA.get(), interestABC1.get(),
- interestABC2.get(), interestD.get()};
- BOOST_CHECK_EQUAL_COLLECTIONS(actual.begin(), actual.end(), expected.begin(), expected.end());
+ const auto expected = std::set{interestA.get(), interestABC1.get(),
+ interestABC2.get(), interestD.get()};
+ BOOST_TEST(actual == expected, boost::test_tools::per_element());
}
BOOST_AUTO_TEST_SUITE_END() // TestPit