Fix windows build in console_reporter.cc. Fixes #228

This commit is contained in:
Eric Fiselier 2016-05-30 15:33:52 -06:00
parent 02230445e0
commit 7188824c33

View File

@ -38,8 +38,8 @@ bool ConsoleReporter::ReportContext(const Context& context) {
PrintBasicContext(&GetErrorStream(), context);
#ifdef BENCHMARK_OS_WINDOWS
if (FLAGS_color_print && &Out != &GetOutputStream()) {
GetErrorString() << "Color printing is only supported for stdout on windows."
if (FLAGS_color_print && &std::cout != &GetOutputStream()) {
GetErrorStream() << "Color printing is only supported for stdout on windows."
" Disabling color printing\n";
FLAGS_color_print = false;
}