X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FSocketPolicy.ct;h=3abbe54aa7e96784f2d295ac68616f067a65791d;hb=73c33f663ff0f65e4656ea5a5f6f07a43a2e1722;hp=5072d64fabe2a11d6f87610cb9f7c5b93410fdee;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Socket/SocketPolicy.ct b/senf/Socket/SocketPolicy.ct index 5072d64..3abbe54 100644 --- a/senf/Socket/SocketPolicy.ct +++ b/senf/Socket/SocketPolicy.ct @@ -28,6 +28,7 @@ // Custom includes #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 )