From 99a9fd6b3f80073df242034fac1eb5f5f323d915 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 May 2001 17:11:38 -0400 Subject: [PATCH] ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used. --- Source/cmGeneratedFileStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h index e372eed02..be1f662b9 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() 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