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

This commit is contained in:
Brad King 2001-05-16 17:11:38 -04:00
parent 5f416cf45b
commit 99a9fd6b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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