summaryrefslogtreecommitdiff
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-29 14:51:08 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-29 14:51:08 -0400
commitae50b4bc6afa62663317e630aef509a29c4f9021 (patch)
tree50efbefa74258f88387915282af26890f084e17b /Source/cmStandardIncludes.h
parentd5763a8c98c9b37096b8ca6ff58a1996528c408c (diff)
downloadcmake-ae50b4bc6afa62663317e630aef509a29c4f9021.tar.gz
BUG: Add a safety check so that you cannot send cmOStringStream.str() to other stream and produce the funky hex number. This makes it impossible to compile such a code. Adding that exposed a whole bunch of places in CMake where streams were used wrongly
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 572bcac5fe..662a831197 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -252,6 +252,9 @@ private:
};
#endif
+/* Poison this operator to avoid common mistakes. */
+extern void operator << (std::ostream&, const cmOStringStream&);
+
/** Standard documentation entry for cmDocumentation's formatting. */
struct cmDocumentationEntry
{