瀏覽代碼

ERR: using declaration to move streams into std namespace needs to bring up ostrstream and ostringstream, not strstream and stringstream.

Brad King 23 年之前
父節點
當前提交
e328ee73c8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmStandardIncludes.h

+ 2 - 2
Source/cmStandardIncludes.h

@@ -108,9 +108,9 @@ using ::ifstream;
 using ::ofstream;
   
 #if !defined(CMAKE_NO_ANSI_STRING_STREAM)
-  using ::stringstream;
+  using ::ostringstream;
 #else
-  using ::strstream;
+  using ::ostrstream;
 #endif
   
 using ::endl;