summaryrefslogtreecommitdiff
path: root/src/pstream.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
commit64a9b42381c26baf24e58b40f50f0b253e551811 (patch)
tree5447a29dff64c3a8b7be8100a01bcb4a2d73b0bb /src/pstream.h
parent7cc550fc22357e2ded194d3e65287c6b3317f5ae (diff)
parentb4407c10c0071365322b2963747bf42a57fd7304 (diff)
downloadfork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.gz
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.bz2
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.zip
Merge branch 'release/v3.0.0-20120426'
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: