projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b120f1
)
Fix Java output stream adapter.
author
Morgan Deters
<mdeters@cs.nyu.edu>
Tue, 26 Nov 2013 21:36:29 +0000
(16:36 -0500)
committer
Morgan Deters
<mdeters@cs.nyu.edu>
Tue, 26 Nov 2013 21:36:29 +0000
(16:36 -0500)
src/bindings/java_stream_adapters.h
patch
|
blob
|
history
diff --git
a/src/bindings/java_stream_adapters.h
b/src/bindings/java_stream_adapters.h
index eefb31e6d5f8be3f159a3eb1bbac1bfccf00c923..f3546613c20baf2c5f4cf8dd0a0428e676b50ba8 100644
(file)
--- a/
src/bindings/java_stream_adapters.h
+++ b/
src/bindings/java_stream_adapters.h
@@
-42,14
+42,9
@@
namespace CVC4 {
-class JavaOutputStreamAdapter {
- std::stringstream d_ss;
-
+class JavaOutputStreamAdapter : public std::ostringstream {
public:
- JavaOutputStreamAdapter() { }
-
- std::string toString() { return d_ss.str(); }
-
+ std::string toString() { return str(); }
};/* class JavaOutputStreamAdapter */
class JavaInputStreamAdapter : public std::stringstream {