Skip to content
Snippets Groups Projects
Commit 3a3adc2e authored by René Fritze's avatar René Fritze
Browse files

MinMaxAvg: deprecate push method in favor of operator()

parent 99a8f031
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include <boost/accumulators/statistics/min.hpp> #include <boost/accumulators/statistics/min.hpp>
#include <boost/accumulators/statistics/mean.hpp> #include <boost/accumulators/statistics/mean.hpp>
#include <dune/common/deprecated.hh>
namespace Stuff { namespace Stuff {
/** \todo DOCME **/ /** \todo DOCME **/
...@@ -109,7 +111,12 @@ public: ...@@ -109,7 +111,12 @@ public:
return boost::accumulators::mean(acc_); return boost::accumulators::mean(acc_);
} }
void push(const ElementType& el) void DUNE_DEPRECATED push(const ElementType& el)
{
acc_(el);
}
void operator()(const ElementType& el)
{ {
acc_(el); acc_(el);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment