CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 03 Dec 2018 16:11:40 +0100
branchv_0
changeset 25 454cfb01cf95
parent 24 c31fdd965028
child 26 aadef824dc93
CLI: untieStdIO() to avoid unwanted implicit flush() calls on std::cout → less write() calls
relpipe-in-cli.cpp
--- a/relpipe-in-cli.cpp	Thu Nov 29 22:30:11 2018 +0100
+++ b/relpipe-in-cli.cpp	Mon Dec 03 16:11:40 2018 +0100
@@ -47,6 +47,7 @@
 
 int main(int argc, char** argv) {
 	setlocale(LC_ALL, "");
+	CLI::untieStdIO();
 	CLI cli(argc, argv);
 
 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;