From 2949b37490dfadbfd5c2139b510c1ff0f621fd05 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Mon, 7 Nov 2022 10:26:30 -0800 Subject: [PATCH] Flesh out deduction_tests to include unordered_[multi]set, update to use BOOST_TEST_TRAIT_SAME --- test/unordered/deduction_tests.cpp | 441 ++++++++++++++++------------- 1 file changed, 248 insertions(+), 193 deletions(-) diff --git a/test/unordered/deduction_tests.cpp b/test/unordered/deduction_tests.cpp index cffb0c1d..e808f656 100644 --- a/test/unordered/deduction_tests.cpp +++ b/test/unordered/deduction_tests.cpp @@ -3,11 +3,14 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#include #include +#include #include #include #if BOOST_UNORDERED_TEMPLATE_DEDUCTION_GUIDES + struct hash_equals { template bool operator()(T const& x) const @@ -33,22 +36,15 @@ template struct test_allocator bool operator==(test_allocator const&) const { return true; } bool operator!=(test_allocator const&) const { return false; } }; -#endif -int main() +template