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:
parent
1715bb67ea
commit
3d2aee7545
@ -64,7 +64,7 @@
|
||||
#if CPPUNIT_HAVE_SSTREAM
|
||||
# include <sstream>
|
||||
namespace CppUnit {
|
||||
class OStringStream : public ostringstream
|
||||
class OStringStream : public std::ostringstream
|
||||
{
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user