File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 8
8
// http://www.boost.org/LICENSE_1_0.txt)
9
9
10
10
#include < boost/function.hpp>
11
- #include < boost/core/is_same.hpp>
12
11
#include < boost/core/lightweight_test_trait.hpp>
13
12
14
13
struct X
@@ -27,14 +26,14 @@ int main()
27
26
{
28
27
typedef boost::function<X (Y)> F1;
29
28
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);
32
31
33
32
typedef boost::function<X (Y, Z)> F2;
34
33
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);
38
37
39
38
return boost::report_errors ();
40
39
}
You can’t perform that action at this time.
0 commit comments