X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Ftype_traits.test.cc;h=90ad1c5e51b4cd5a63cbfa5619275ee5e047987f;hb=4101c2b818ec67e7469ebb44f030eed2185c4ab0;hp=1e1706bf367d8fa186491d686393db40f8ec74d6;hpb=18d987b03ac188adf6e1a82ebce2666738f0ff65;p=senf.git diff --git a/senf/Utils/type_traits.test.cc b/senf/Utils/type_traits.test.cc index 1e1706b..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,11 +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_