From 53c084084d05b1340acf9fd2902885f14e3eb324 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 23 Dec 2022 02:32:03 +0200 Subject: [PATCH] Use BOOST_TEST_TRAIT_SAME --- test/result_arg_types_test.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/result_arg_types_test.cpp b/test/result_arg_types_test.cpp index 33ccddc..9d5aa2c 100644 --- a/test/result_arg_types_test.cpp +++ b/test/result_arg_types_test.cpp @@ -8,7 +8,6 @@ // http://www.boost.org/LICENSE_1_0.txt) #include -#include #include struct X @@ -27,14 +26,14 @@ int main() { typedef boost::function F1; - BOOST_TEST_TRAIT_TRUE(( boost::core::is_same )); - BOOST_TEST_TRAIT_TRUE(( boost::core::is_same )); + BOOST_TEST_TRAIT_SAME(F1::result_type, X); + BOOST_TEST_TRAIT_SAME(F1::argument_type, Y); typedef boost::function F2; - BOOST_TEST_TRAIT_TRUE(( boost::core::is_same )); - BOOST_TEST_TRAIT_TRUE(( boost::core::is_same )); - BOOST_TEST_TRAIT_TRUE(( boost::core::is_same )); + BOOST_TEST_TRAIT_SAME(F2::result_type, X); + BOOST_TEST_TRAIT_SAME(F2::first_argument_type, Y); + BOOST_TEST_TRAIT_SAME(F2::second_argument_type, Z); return boost::report_errors(); }