Added SENF_NO_DEBUG symbol and removed dependency on NDEBUG
[senf.git] / Socket / ProtocolClientSocketHandle.cti
index 25a0ee4..9fe7718 100644 (file)
@@ -30,6 +30,7 @@
 //#include "ProtocolClientSocketHandle.ih"
 
 // Custom includes
+#include "../Utils/senfassert.hh"
 
 #define prefix_ inline
 ///////////////////////////////cti.p///////////////////////////////////////
@@ -60,7 +61,7 @@ template <class SocketProtocol>
 prefix_ SocketProtocol const &
 senf::ProtocolClientSocketHandle<SocketProtocol>::protocol()
 {
-    BOOST_ASSERT( dynamic_cast<SocketProtocol const *>(&this->body().protocol()) );
+    SENF_ASSERT( dynamic_cast<SocketProtocol const *>(&this->body().protocol()) );
     // Need dynamic_cast here, since senf::SocketProtocol is a
     // virtual base
     return dynamic_cast<SocketProtocol const &>(this->body().protocol());