fixes for g++ 4.5 (some members returned "the constructor, not the type")
[senf.git] / senf / Utils / Statistics.cti
index fab1d56..a18319e 100644 (file)
@@ -28,9 +28,9 @@
 // Custom includes
 
 #define prefix_ inline
-///////////////////////////////cti.p///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::StatisticsBase::OutputProxy
 
 template <class Owner>
@@ -85,7 +85,18 @@ prefix_ senf::console::ScopedDirectory<> & senf::StatisticsBase::OutputProxy<Own
     return entry_->dir;
 }
 
-///////////////////////////////cti.e///////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////
+// senf::Statistics
+
+template <class Value>
+prefix_ void senf::Statistics::operator()(unsigned n, StatisticAccumulator<Value> & sa)
+{
+    enter(n, float(sa.min()), sa.avg(), float(sa.max()), sa.stddev());
+    sa.clear();
+}
+
+
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f