diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3a76d0a..1f8c370 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,6 +6,6 @@ include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST) if(HAVE_BOOST_TEST) -boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::bind Boost::core Boost::function Boost::smart_ptr Boost::type_traits) +boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::bind Boost::core Boost::function Boost::smart_ptr) endif() diff --git a/test/apply_test2.cpp b/test/apply_test2.cpp index 1cc6371..5185644 100644 --- a/test/apply_test2.cpp +++ b/test/apply_test2.cpp @@ -4,12 +4,11 @@ #include #include -#include int main() { - BOOST_TEST_TRAIT_TRUE((boost::is_same::result_type>)); - BOOST_TEST_TRAIT_TRUE((boost::is_same::result_type>)); + BOOST_TEST_TRAIT_SAME(void, boost::apply::result_type); + BOOST_TEST_TRAIT_SAME(int&, boost::apply::result_type); return boost::report_errors(); } diff --git a/test/protect_test2.cpp b/test/protect_test2.cpp index aded09d..3ca9c46 100644 --- a/test/protect_test2.cpp +++ b/test/protect_test2.cpp @@ -6,11 +6,10 @@ #include #include -#include template void test( F ) { - BOOST_TEST_TRAIT_TRUE((boost::is_same)); + BOOST_TEST_TRAIT_SAME(typename T::result_type, typename F::result_type); } struct X @@ -29,7 +28,7 @@ template struct inherit: T, U template void test2( F ) { // test that F doesn't have ::result_type - BOOST_TEST_TRAIT_TRUE((boost::is_same::result_type, typename X::result_type>)); + BOOST_TEST_TRAIT_SAME(typename inherit::result_type, typename X::result_type); } int main()