summaryrefslogtreecommitdiff
path: root/src/pstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pstream.h')
-rw-r--r--src/pstream.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/pstream.h b/src/pstream.h
index 8134495d..6e38158a 100644
--- a/src/pstream.h
+++ b/src/pstream.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2010, John Wiegley. All rights reserved.
+ * Copyright (c) 2003-2012, John Wiegley. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -61,9 +61,14 @@ class ptristream : public std::istream
if (*ptr && len == 0)
len = std::strlen(ptr);
- setg(ptr, // beginning of putback area
- ptr, // read position
+ setg(ptr, // beginning of putback area
+ ptr, // read position
ptr+len); // end position
+
+ TRACE_CTOR(ptrinbuf, "char *, std::size_t");
+ }
+ ~ptrinbuf() throw() {
+ TRACE_DTOR(ptrinbuf);
}
protected: