diff options
Diffstat (limited to 'Source/cmGeneratedFileStream.h')
-rw-r--r-- | Source/cmGeneratedFileStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h index 276a829..dca7488 100644 --- a/Source/cmGeneratedFileStream.h +++ b/Source/cmGeneratedFileStream.h @@ -80,7 +80,7 @@ public: /** * Allow a test for whether the file is open. */ - operator bool() { return m_Stream.is_open(); } + operator bool() { return static_cast<bool>(m_Stream); } /** * Close the file stream. This will cause the copy-if-different to the |