3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +00:00

remove '#include <iostream>' from headers and from unneeded places

It's harmful to have iostream everywhere as it injects functions in the compiled files
This commit is contained in:
Nuno Lopes 2022-06-17 14:10:19 +01:00
parent 70bcf0b51d
commit 73a24ca0a9
90 changed files with 99 additions and 95 deletions

View file

@ -16,11 +16,11 @@ Author:
Revision History:
--*/
#include<iostream>
#include "util/timeit.h"
#include "util/memory_manager.h"
#include "util/stopwatch.h"
#include<iomanip>
#include<iostream>
struct timeit::imp {
stopwatch m_watch;
@ -45,9 +45,9 @@ struct timeit::imp {
}
};
timeit::timeit(bool enable, char const * msg, std::ostream & out) {
timeit::timeit(bool enable, char const * msg, std::ostream * out) {
if (enable)
m_imp = alloc(imp, msg, out);
m_imp = alloc(imp, msg, out ? *out : std::cerr);
else
m_imp = nullptr;
}