We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d87dcc commit ad8d2e9Copy full SHA for ad8d2e9
src/main.cpp
@@ -100,6 +100,9 @@ int main(int argc, char* argv[])
100
const std::filesystem::path execPath = std::filesystem::path(argv[0]).parent_path();
101
const std::filesystem::path configFile = execPath / "config" / "default.json";
102
103
+ auto oldCoutBuf = std::cout.rdbuf();
104
+ auto oldCerrBuf = std::cerr.rdbuf();
105
+
106
std::ostringstream local;
107
std::cout.rdbuf(local.rdbuf());
108
std::cerr.rdbuf(local.rdbuf());
@@ -136,6 +139,9 @@ int main(int argc, char* argv[])
136
139
out.close();
137
140
}
138
141
142
+ std::cout.rdbuf(oldCoutBuf);
143
+ std::cerr.rdbuf(oldCerrBuf);
144
145
return 0;
146
147
0 commit comments