Browse Source

ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used.

Brad King 25 years ago
parent
commit
99a9fd6b3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGeneratedFileStream.h

+ 1 - 1
Source/cmGeneratedFileStream.h

@@ -80,7 +80,7 @@ public:
   /**
   /**
    * Allow a test for whether the file is open.
    * Allow a test for whether the file is open.
    */
    */
-  operator bool() const { return m_Stream; }
+  operator bool() const { return m_Stream.is_open(); }
   
   
   /**
   /**
    * Close the file stream.  This will cause the copy-if-different to the
    * Close the file stream.  This will cause the copy-if-different to the