Parameters::printUnused: drop default parameter for stream

This commit is contained in:
Arne Morten Kvarving 2024-09-04 19:43:04 +02:00
parent 4967323c29
commit 218988c85e
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ void printValues(std::ostream& os);
*
* \return true if something was printed
*/
bool printUnused(std::ostream& os = std::cout);
bool printUnused(std::ostream& os);
/*!
* \ingroup Parameter

View File

@ -365,13 +365,13 @@ static inline int start(int argc, char **argv, bool registerParams=true)
// always print the list of specified but unused parameters
printSeparator =
printSeparator ||
Parameters::printUnused();
Parameters::printUnused(std::cout);
if (printSeparator)
std::cout << endParametersSeparator;
}
else
// always print the list of specified but unused parameters
if (Parameters::printUnused())
if (Parameters::printUnused(std::cout))
std::cout << endParametersSeparator;
}