]> git.cworth.org Git - apitrace/blobdiff - common/formatter.hpp
Build fixes for VS2013
[apitrace] / common / formatter.hpp
index 75a407f7469ee421f3cde1c9bc8b7e4a68a4772d..55ed28abec1501d19c909dfe0be544b983941319 100644 (file)
@@ -153,9 +153,9 @@ public:
     WindowsAttribute(WORD _wAttributes) : wAttributes(_wAttributes) {}
     void apply(std::ostream& os) const {
         DWORD nStdHandleOutput;
-        if (os == std::cout) {
+        if (&os == &std::cout) {
             nStdHandleOutput = STD_OUTPUT_HANDLE;
-        } else if (os == std::cerr) {
+        } else if (&os == &std::cerr) {
             nStdHandleOutput = STD_ERROR_HANDLE;
         } else {
             return;