Commit 99a9fd6b authored by Brad King's avatar Brad King

ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that...

ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used.
parent 5f416cf4
......@@ -80,7 +80,7 @@ public:
/**
* 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
......
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