summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-16 21:11:38 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-16 21:11:38 (GMT)
commit99a9fd6b3f80073df242034fac1eb5f5f323d915 (patch)
tree8bc756e73600ea400e65ba7125ccef1a4abed4a8 /Source/cmGeneratedFileStream.h
parent5f416cf45bd3b4eb0d4327a24d0aae5605f05585 (diff)
downloadCMake-99a9fd6b3f80073df242034fac1eb5f5f323d915.zip
CMake-99a9fd6b3f80073df242034fac1eb5f5f323d915.tar.gz
CMake-99a9fd6b3f80073df242034fac1eb5f5f323d915.tar.bz2
ERR: Added is_open() check in cmGeneratedFileStream::operator bool() so that implicit conversion to bool is not used.
Diffstat (limited to 'Source/cmGeneratedFileStream.h')
-rw-r--r--Source/cmGeneratedFileStream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h
index e372eed..be1f662 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