Commit adb3dc11 authored by Martin Schultz's avatar Martin Schultz

Merge branch 'fixWindowsMissingStderr' into 'unstable'

fixes #8 by clearing all std streams to reset them from an initial error state

See merge request !57
parents 114e7737 5d219e54
......@@ -125,6 +125,12 @@ void connect_console()
if (check) {
std::cerr << "Error reopening stderr" << std::endl;
}
std::cout.clear();
std::cerr.clear();
std::cin.clear();
std::wcout.clear();
std::wcerr.clear();
std::wcin.clear();
}
void attachConsole()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment