fixes for g++ 4.5 (some members returned "the constructor, not the type")
[senf.git] / senf / PPI / Events.cti
index 9478b8e..5dd6698 100644 (file)
 #include "detail/EventBinding.hh"
 
 #define prefix_ inline
-///////////////////////////////cti.p///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::ppi::EventImplementationHelper<EventType,Self>
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // protected members
 
 template <class EventType, class Self>
@@ -52,22 +52,22 @@ prefix_ void senf::ppi::EventImplementationHelper<EventType,Self>::callback(Even
     binding().callback(event);
 }
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // private members
 
 template <class EventType, class Self>
 prefix_ senf::ppi::detail::EventBinding<EventType> &
 senf::ppi::EventImplementationHelper<EventType,Self>::binding()
 {
-    SENF_ASSERT( static_cast<Self*>(this)->binding_ &&
+    SENF_ASSERT( static_cast<Self*>(this)->binding_,
                  "senf::ppi::EventImplementationHelper::binding(): Missing registerEvent()" );
     return * static_cast<Self*>(this)->binding_;
 }
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::ppi::EventImplementationHelper<void,Self>
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // protected members
 
 template <class Self>
@@ -83,19 +83,19 @@ prefix_ void senf::ppi::EventImplementationHelper<void,Self>::callback()
     binding().callback();
 }
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // private members
 
 template <class Self>
 prefix_ senf::ppi::detail::EventBinding<void> &
 senf::ppi::EventImplementationHelper<void,Self>::binding()
 {
-    SENF_ASSERT( static_cast<Self*>(this)->binding_ &&
+    SENF_ASSERT( static_cast<Self*>(this)->binding_,
                  "senf::ppi::EventImplementationHelper::binding(): Missing registerEvent()" );
     return * static_cast<Self*>(this)->binding_;
 }
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::ppi::EventImplementation<EventType>
 
 template <class EventType>
@@ -112,7 +112,7 @@ prefix_ senf::ppi::EventManager & senf::ppi::EventImplementation<EventType>::man
     return binding_->manager();
 }
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // protected members
 
 template <class EventType>
@@ -120,7 +120,7 @@ prefix_ senf::ppi::EventImplementation<EventType>::EventImplementation()
     : binding_(0)
 {}
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // private members
 
 template <class EventType>
@@ -136,7 +136,7 @@ senf::ppi::EventImplementation<EventType>::setBinding(detail::EventBinding<Event
     binding_ = & binding;
 }
 
-///////////////////////////////cti.e///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f