@@ -72,7 +72,6 @@ using namespace std;
exptp template class expcl classname;
#else
#define EXPORT_TEMPLATE_CLASS(expcl, exptp, classname)
-#define INLINE inline
#endif
// We define the macro PUBLISHED to mark C++ methods that are to be
@@ -70,8 +70,9 @@ public:
_owns_str = false;
}
string str() {
+ int length = pcount();
char *s = strstream::str();
- string result(s);
+ string result(s, length);
if (_owns_str) {
delete[] s;