Obviously needed for building but missing in the new tree.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@177 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* _sstream
|
||||
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#if __MWERKS__
|
||||
#include <sstream>
|
||||
#else
|
||||
|
||||
#ifndef __SSTREAM_H
|
||||
#define __SSTREAM_H
|
||||
|
||||
#include <strstream>
|
||||
#include <string>
|
||||
|
||||
class ostringstream : public ostrstream {
|
||||
public:
|
||||
ostringstream() : ostrstream() {}
|
||||
~ostringstream() { delete [] ostrstream::str(); }
|
||||
string str() { *this << ends; return string(ostrstream::str()); }
|
||||
};
|
||||
|
||||
#endif /* __SSTREAM_H */
|
||||
#endif /* USING_STRSTREAM */
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* _sstream
|
||||
* Copyright 1999 Y.Takagi. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#if __MWERKS__
|
||||
#include <sstream>
|
||||
#else
|
||||
|
||||
#ifndef __SSTREAM_H
|
||||
#define __SSTREAM_H
|
||||
|
||||
#include <strstream>
|
||||
#include <string>
|
||||
|
||||
class ostringstream : public ostrstream {
|
||||
public:
|
||||
ostringstream() : ostrstream() {}
|
||||
~ostringstream() { delete [] ostrstream::str(); }
|
||||
string str() { *this << ends; return string(ostrstream::str()); }
|
||||
};
|
||||
|
||||
#endif /* __SSTREAM_H */
|
||||
#endif /* USING_STRSTREAM */
|
||||
Reference in New Issue
Block a user