Import Geant4 6.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:49:58 +02:00
parent 96686e0c8f
commit 1d812b78b1
4545 changed files with 24433 additions and 175005 deletions
@@ -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 ;
}