summaryrefslogtreecommitdiff
path: root/src/pstream.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-18 01:01:30 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-18 01:01:30 -0500
commitf9088f88360019bb4be8743dd8091036502adb9c (patch)
tree8a4fe8e1bba0ccc65a1809874ebbd249577fba57 /src/pstream.h
parente7d26d53cfc73cc706a6b4903f5c5d6641bdeae8 (diff)
downloadfork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.tar.gz
fork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.tar.bz2
fork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.zip
Added --verify-memory and missing TRACE_[CD]TOR calls
Diffstat (limited to 'src/pstream.h')
-rw-r--r--src/pstream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pstream.h b/src/pstream.h
index a894325d..dfb27056 100644
--- a/src/pstream.h
+++ b/src/pstream.h
@@ -58,6 +58,8 @@ class ptristream : public std::istream
public:
ptrinbuf(char * _ptr, std::size_t _len) : ptr(_ptr), len(_len) {
+ TRACE_CTOR(ptrinbuf, "char *, std::size_t");
+
if (*ptr && len == 0)
len = std::strlen(ptr);
@@ -65,6 +67,9 @@ class ptristream : public std::istream
ptr, // read position
ptr+len); // end position
}
+ ~ptrinbuf() throw() {
+ TRACE_DTOR(ptrinbuf);
+ }
protected:
virtual int_type underflow() {