X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.ih;h=b3352803e34788b596f86ff284e94a198c986e8f;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=ccc0371e89415bb38e5e178e1f032d212bec78d5;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/Socket/SocketPolicy.ih b/Socket/SocketPolicy.ih index ccc0371..b335280 100644 --- a/Socket/SocketPolicy.ih +++ b/Socket/SocketPolicy.ih @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// 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 // it under the terms of the GNU General Public License as published by @@ -24,8 +24,8 @@ \brief Policy Framework internal header */ -#ifndef IH_SocketPolicy_ -#define IH_SocketPolicy_ 1 +#ifndef IH_SENF_Socket_SocketPolicy_ +#define IH_SENF_Socket_SocketPolicy_ 1 // Custom includes #include @@ -71,7 +71,7 @@ namespace senf { struct SocketPolicyBase { - virtual ~SocketPolicyBase() {} + virtual ~SocketPolicyBase(); # define SP_Declare(x1,x2,SomePolicy) \ virtual BOOST_PP_CAT(SomePolicy,Base) const & BOOST_PP_CAT(the,SomePolicy) () \ @@ -111,8 +111,6 @@ namespace senf { namespace impl { - struct nil {}; - template struct MakeSocketPolicy_merge {}; @@ -150,7 +148,7 @@ namespace impl { {}; template - struct apply + struct apply { typedef Base type; }; @@ -201,7 +199,7 @@ namespace impl { template < BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( SENF_SOCKET_POLICIES_N, class T, - senf::impl::nil ) > + mpl::nil ) > class MakeSocketPolicy : public boost::mpl::if_< boost::is_convertible< T0*, SocketPolicyBase* >, impl::MakeSocketPolicy_impl<