Skip to content

Commit 53c0840

Browse files
committed
Use BOOST_TEST_TRAIT_SAME
1 parent c225007 commit 53c0840

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/result_arg_types_test.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// http://www.boost.org/LICENSE_1_0.txt)
99

1010
#include <boost/function.hpp>
11-
#include <boost/core/is_same.hpp>
1211
#include <boost/core/lightweight_test_trait.hpp>
1312

1413
struct X
@@ -27,14 +26,14 @@ int main()
2726
{
2827
typedef boost::function<X(Y)> F1;
2928

30-
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F1::result_type, X> ));
31-
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F1::argument_type, Y> ));
29+
BOOST_TEST_TRAIT_SAME(F1::result_type, X);
30+
BOOST_TEST_TRAIT_SAME(F1::argument_type, Y);
3231

3332
typedef boost::function<X(Y, Z)> F2;
3433

35-
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::result_type, X> ));
36-
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::first_argument_type, Y> ));
37-
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::second_argument_type, Z> ));
34+
BOOST_TEST_TRAIT_SAME(F2::result_type, X);
35+
BOOST_TEST_TRAIT_SAME(F2::first_argument_type, Y);
36+
BOOST_TEST_TRAIT_SAME(F2::second_argument_type, Z);
3837

3938
return boost::report_errors();
4039
}

0 commit comments

Comments
 (0)