X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.cc;h=7063cccd9465a2c954f3608e7c845b5f5ade0b70;hb=d99f412f95e9c56b4f7e6fee860cd80234c89107;hp=78f929762cf5c8493ee8fe0c7060d2e65032a975;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/SocketPolicy.test.cc b/Socket/SocketPolicy.test.cc index 78f9297..7063ccc 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,9 +56,7 @@ namespace { struct WritablePolicy : public WritePolicyBase {}; struct UnwritablePolicy : public WritePolicyBase {}; - struct SocketBufferingPolicy : public BufferingPolicyBase {}; - - template + template struct ConvertibleValue { ConvertibleValue() {} @@ -66,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; } @@ -95,8 +93,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) UnspecifiedFramingPolicy, ConnectedCommunicationPolicy, ReadablePolicy, - UnspecifiedWritePolicy, - UnspecifiedBufferingPolicy> Policy2; + UnspecifiedWritePolicy> Policy2; BOOST_MPL_ASSERT(( boost::is_same )); @@ -109,8 +106,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) UnspecifiedFramingPolicy, UnspecifiedCommunicationPolicy, ReadablePolicy, - UnspecifiedWritePolicy, - UnspecifiedBufferingPolicy> Policy4; + UnspecifiedWritePolicy> Policy4; BOOST_MPL_ASSERT(( boost::is_same )); BOOST_MPL_ASSERT_NOT(( boost::is_same ));