ENH: Added cmStringStream class to wrap std::stringstream or std::strstream depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed.

This commit is contained in:
Brad King
2002-06-19 15:21:49 -04:00
parent 27a2cad0fc
commit 07d35e662d
10 changed files with 89 additions and 54 deletions
+2 -3
View File
@@ -216,10 +216,9 @@ cmVTKMakeInstantiatorCommand
std::string
cmVTKMakeInstantiatorCommand::GenerateCreationFileName(unsigned int block)
{
std::strstream nameStr;
nameStr << m_ClassName.c_str() << block << ".cxx" << std::ends;
cmStringStream nameStr;
nameStr << m_ClassName.c_str() << block << ".cxx";
std::string result = nameStr.str();
delete [] nameStr.str();
return result;
}