ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used.
This commit is contained in:
parent
5f416cf45b
commit
99a9fd6b3f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue