mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user