Avoid direct use of std::(o|)stringstream (#13272)

Older C++ compilers do not provide a standard std::stringstream.
Use our compatibility interfaces instead.

Also avoid std::stringstream(openmode) signature.  Our approximate
stringstream implementation provided when the standard one is not
available does not support the openmode argument.
This commit is contained in:
Brad King
2012-06-06 15:14:40 -04:00
parent eb53bc2773
commit 94de982902
5 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -365,9 +365,9 @@ cmNinjaTargetGenerator
this->GetLocalGenerator()->BuildCommandLine(compileCmds);
// Write the rule for compiling file of the given language.
std::ostringstream comment;
cmOStringStream comment;
comment << "Rule for compiling " << language << " files.";
std::ostringstream description;
cmOStringStream description;
description << "Building " << language << " object $out";
this->GetGlobalGenerator()->AddRule(this->LanguageCompilerRule(language),
cmdLine,