X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.cc;h=72ba433a6d65a7a574edaf99147d7596d6f6ebac;hb=9428e2877c15dac640efdb075d40cafea554cc88;hp=0a99bdf07d4988c3e4101cdcff065014b045b590;hpb=5ed1fa1c42763aebad06c1e4ac8fc5a19e15519a;p=senf.git diff --git a/Socket/SocketPolicy.test.cc b/Socket/SocketPolicy.test.cc index 0a99bdf..72ba433 100644 --- a/Socket/SocketPolicy.test.cc +++ b/Socket/SocketPolicy.test.cc @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -56,7 +56,7 @@ namespace { struct WritablePolicy : public WritePolicyBase {}; struct UnwritablePolicy : public WritePolicyBase {}; - template + template struct ConvertibleValue { ConvertibleValue() {} @@ -64,14 +64,14 @@ namespace { template ConvertibleValue(ConvertibleValue const & other, - typename boost::enable_if< SocketPolicyIsBaseOf >::type * = 0) + typename boost::enable_if< SocketPolicyIsBaseOf >::type * = 0) {} ConvertibleValue const & operator=(ConvertibleValue const & other) { return *this; } template - typename boost::enable_if< SocketPolicyIsBaseOf, + typename boost::enable_if< SocketPolicyIsBaseOf, ConvertibleValue >::type const & operator=(ConvertibleValue const & other) { return *this; } @@ -132,7 +132,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) Policy3 p3; BOOST_CHECK_THROW( Policy1::checkBaseOf(p3), std::bad_cast ); - BOOST_CHECK_NO_THROW( Policy3::checkBaseOf(p1) ); + SENF_CHECK_NO_THROW( Policy3::checkBaseOf(p1) ); } }