X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocolServerSocketHandle.cti;h=abc540097eca5acf2bbd6e000c089ad3efbabb14;hb=e3179a2123ad51d0d9eb63834a581145c4f77c92;hp=482a3f203e2e909e8edc717358e08fc83b307091;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Socket/ProtocolServerSocketHandle.cti b/senf/Socket/ProtocolServerSocketHandle.cti index 482a3f2..abc5400 100644 --- a/senf/Socket/ProtocolServerSocketHandle.cti +++ b/senf/Socket/ProtocolServerSocketHandle.cti @@ -33,7 +33,7 @@ #include "ProtocolClientSocketHandle.hh" #define prefix_ inline -///////////////////////////////cti.p/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// template prefix_ senf::ProtocolServerSocketHandle:: @@ -46,14 +46,16 @@ prefix_ senf::ProtocolServerSocketHandle::ProtocolServerSocketHa std::auto_ptr(new ProtocolSocketBody(true))) {} -#define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolServerSocketHandle.mpp), 2)) +#define BOOST_PP_ITERATION_PARAMS_1 \ + (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolServerSocketHandle.mpp), 2)) #include BOOST_PP_ITERATE() template prefix_ SocketProtocol & senf::ProtocolServerSocketHandle::protocol() { - SENF_ASSERT( dynamic_cast(&this->body().protocol()) ); + SENF_ASSERT( dynamic_cast(&this->body().protocol()), + "Internal failure: Incompatible protocol class fount it's way into this handle"); // Need dynamic_cast here, since senf::SocketProtocol is a // virtual base return dynamic_cast(this->body().protocol()); @@ -113,7 +115,7 @@ ProtocolServerSocketHandle(FileHandle other, bool isChecked) : ServerSocketHandle(other,isChecked) {} -///////////////////////////////cti.e/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_