CppUnit: use <sstream> instead of the deprecated <strstream>

<strstream> has been deprecated since C++98. Both GCC 2.95.3 and GCC 8.3 have
the successor <sstream> available, so use that one instead.

Change-Id: Ifefe686974864c2fd1d4a9d083294b1edb436fbd
This commit is contained in:
Niels Sascha Reedijk 2021-09-14 20:30:32 +01:00
parent 1715bb67ea
commit 3d2aee7545
2 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@
#if CPPUNIT_HAVE_SSTREAM
# include <sstream>
namespace CppUnit {
class OStringStream : public ostringstream
class OStringStream : public std::ostringstream
{
};
}

View File

@ -34,7 +34,9 @@
#endif
/* define if the compiler has stringstream */
/* #undef CPPUNIT_HAVE_SSTREAM */
#ifndef CPPUNIT_HAVE_SSTREAM
#define CPPUNIT_HAVE_SSTREAM 1
#endif
/* Define if you have the <strstream> header file. */
#ifndef CPPUNIT_HAVE_STRSTREAM