Import Geant4 6.1.0 source tree
This commit is contained in:
@@ -14,8 +14,7 @@ typedef std::ostringstream OutputStringStream ;
|
||||
|
||||
#else
|
||||
|
||||
// MD added include strstream.h (not strstream, since it does not exist on Solaris)
|
||||
#include <strstream.h>
|
||||
#include <strstream>
|
||||
|
||||
/** OutputStringStream is typedefed to ostringstream if sstream is
|
||||
part of the standard library (unless Zipios++ has been explicitly
|
||||
@@ -24,14 +23,14 @@ typedef std::ostringstream OutputStringStream ;
|
||||
strstream.h. In this case OutputStringStream specializes the str()
|
||||
method, such that the caller does not have to concern himself with
|
||||
null-terminating the string and unfreezing the ostrstream. */
|
||||
class OutputStringStream : public ostrstream {
|
||||
class OutputStringStream : public std::ostrstream {
|
||||
public:
|
||||
|
||||
/** Specialization of ostrstream::str() that takes care of
|
||||
null-terminating the string and unfreezing the ostrstream. */
|
||||
inline string str() {
|
||||
*this << ends ; // null terminate ostrstream
|
||||
string o_str( ostrstream::str() ) ;
|
||||
*this << std::ends ; // null terminate ostrstream
|
||||
string o_str( std::ostrstream::str() ) ;
|
||||
freeze( 0 ) ;
|
||||
return o_str ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user