X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FSocketPolicy.ct;h=3abbe54aa7e96784f2d295ac68616f067a65791d;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=fa9ca77116aa7ecb3d882312e96729519031213b;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/SocketPolicy.ct b/senf/Socket/SocketPolicy.ct index fa9ca77..3abbe54 100644 --- a/senf/Socket/SocketPolicy.ct +++ b/senf/Socket/SocketPolicy.ct @@ -27,7 +27,8 @@ #include "SocketPolicy.ih" // Custom includes -#include "../Utils/Exception.hh" +#include +#include "senf/Utils/IgnoreValue.hh" #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// @@ -43,9 +44,9 @@ checkBaseOf(SocketPolicyBase const & other) // to the corresponding (static) policy of this class. Throws // std::bad_cast on failure -# define SP_CheckPolicy(x1,x2,SomePolicy) \ - (void) dynamic_cast( \ - other.BOOST_PP_CAT(the,SomePolicy)()); +# define SP_CheckPolicy(x1,x2,SomePolicy) \ + senf::IGNORE( dynamic_cast( \ + other.BOOST_PP_CAT(the,SomePolicy)()) ); try { BOOST_PP_SEQ_FOR_EACH( SP_CheckPolicy, , SENF_SOCKET_POLICIES )