X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Ftype_traits.test.cc;h=90ad1c5e51b4cd5a63cbfa5619275ee5e047987f;hb=5b2e9a63a43027c71ac470ac9bdecb72e8974951;hp=0040416648244cc299b7a7ec0f05591abb371ead;hpb=767a76da8e5b96a69b620e44d32e0a1b04005679;p=senf.git diff --git a/senf/Utils/type_traits.test.cc b/senf/Utils/type_traits.test.cc index 0040416..90ad1c5 100644 --- a/senf/Utils/type_traits.test.cc +++ b/senf/Utils/type_traits.test.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -35,7 +35,7 @@ #include #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace { struct Class; @@ -45,9 +45,9 @@ SENF_AUTO_UNIT_TEST(typeTraits) { typedef boost::function_traits traits; - BOOST_STATIC_ASSERT(( boost::is_same< - senf::function_traits_remove_arg< traits >::type, - boost::function_traits + BOOST_STATIC_ASSERT(( boost::is_same< + senf::function_traits_remove_arg< traits >::type, + boost::function_traits >::value )); BOOST_STATIC_ASSERT(( boost::is_same< @@ -59,36 +59,36 @@ SENF_AUTO_UNIT_TEST(typeTraits) void >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< Class (Class::*) >::type, - Class + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< Class (Class::*) >::type, + Class >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< Class const (Class::*) >::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< Class const (Class::*) >::type, Class const >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< Class (Class::*)(int) >::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< Class (Class::*)(int) >::type, Class (int) >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< Class const (Class::*)(int) >::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< Class const (Class::*)(int) >::type, Class const (int) >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< void (Class::*)(int) const>::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< void (Class::*)(int) const>::type, void (int) >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< Class const (Class::*)(int) const>::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< Class const (Class::*)(int) const>::type, Class const (int) >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< void (Class::* const)(int)>::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< void (Class::* const)(int)>::type, void (int) >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_member_pointer< void (Class::* const)(int) const>::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_member_pointer< void (Class::* const)(int) const>::type, void (int) >::value )); @@ -101,12 +101,12 @@ SENF_AUTO_UNIT_TEST(typeTraits) void >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_any_pointer< int (Class::*) >::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_any_pointer< int (Class::*) >::type, int >::value )); - BOOST_STATIC_ASSERT(( boost::is_same< - senf::remove_any_pointer< void (Class::*)(int) >::type, + BOOST_STATIC_ASSERT(( boost::is_same< + senf::remove_any_pointer< void (Class::*)(int) >::type, void (int) >::value )); BOOST_STATIC_ASSERT(( boost::is_same< @@ -140,9 +140,11 @@ SENF_AUTO_UNIT_TEST(typeTraits) BOOST_STATIC_ASSERT(( senf::is_pair< std::pair >::value )); BOOST_STATIC_ASSERT(( ! senf::is_pair< void () >::value )); + + BOOST_CHECK( true ); } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_