From fc21827eca40b191bb4f3a00e5ba0bd70630d391 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Sun, 31 Oct 2010 21:36:53 +0100 Subject: [PATCH] remove default values for verbose parameters, so as to make deprecated wrappers unused by default --- eo/src/eoCombinedInit.h | 2 +- eo/src/eoProportionalCombinedOp.h | 2 +- eo/src/utils/eoOStreamMonitor.h | 1 + eo/src/utils/eoStdoutMonitor.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/eo/src/eoCombinedInit.h b/eo/src/eoCombinedInit.h index cdd4aa7d..68f21970 100644 --- a/eo/src/eoCombinedInit.h +++ b/eo/src/eoCombinedInit.h @@ -43,7 +43,7 @@ public: rates.push_back(_rate); } - void add(eoInit & _init, double _rate, bool _verbose=false) + void add(eoInit & _init, double _rate, bool _verbose) { eo::log << eo::warnings << "WARNING: the use of the verbose parameter in eoCombinedInit::add is deprecated and will be removed in the next release." << std::endl; add( _init, _rate ); diff --git a/eo/src/eoProportionalCombinedOp.h b/eo/src/eoProportionalCombinedOp.h index b5b69655..a03bb47b 100644 --- a/eo/src/eoProportionalCombinedOp.h +++ b/eo/src/eoProportionalCombinedOp.h @@ -173,7 +173,7 @@ public: virtual std::string className() const { return "eoPropCombinedQuadOp"; } - virtual void add(eoQuadOp & _op, const double _rate, bool _verbose=false) + virtual void add(eoQuadOp & _op, const double _rate, bool _verbose) { eo::log << eo::warnings << "WARNING: the use of the verbose parameter in eoPropCombinedQuadOp::add is deprecated and will be removed in the next release." << std::endl; add(_op,_rate); diff --git a/eo/src/utils/eoOStreamMonitor.h b/eo/src/utils/eoOStreamMonitor.h index 2984a991..83e1d604 100644 --- a/eo/src/utils/eoOStreamMonitor.h +++ b/eo/src/utils/eoOStreamMonitor.h @@ -34,6 +34,7 @@ Authors: #include #include +#include #include /** diff --git a/eo/src/utils/eoStdoutMonitor.h b/eo/src/utils/eoStdoutMonitor.h index b25e797f..76ac1391 100644 --- a/eo/src/utils/eoStdoutMonitor.h +++ b/eo/src/utils/eoStdoutMonitor.h @@ -41,7 +41,7 @@ Authors: class eoStdoutMonitor : public eoOStreamMonitor { public : - eoStdoutMonitor(bool _verbose=true, std::string _delim = "\t", unsigned int _width=20, char _fill=' ' ) : + eoStdoutMonitor(bool _verbose, std::string _delim = "\t", unsigned int _width=20, char _fill=' ' ) : eoOStreamMonitor( std::cout, _verbose, _delim, _width, _fill) { eo::log << eo::warnings << "WARNING: the use of the verbose parameter in eoStdutMonitor constructor is deprecated and will be removed in the next release" << std::endl;