]> granicus.if.org Git - icinga2/commitdiff
Improve compatibility with C++11.
authorGunnar Beutner <gunnar@beutner.name>
Wed, 11 Dec 2013 15:40:55 +0000 (16:40 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 11 Dec 2013 15:40:55 +0000 (16:40 +0100)
Fixes #5307

lib/base/streamlogger.cpp

index 6acc39e70a8e418a29d8f6018590803ccd47bf85..de0e97bffd2dbfade1804bc06a2e163174c93285 100644 (file)
@@ -126,10 +126,10 @@ bool StreamLogger::IsTty(std::ostream& stream)
 {
 #ifndef _WIN32
        /* Eww... */
-       if (stream == std::cout)
+       if (&stream == &std::cout)
                return isatty(fileno(stdout));
 
-       if (stream == std::cerr)
+       if (&stream == &std::cerr)
                return isatty(fileno(stderr));
 #endif /*_ WIN32 */