summaryrefslogtreecommitdiff
path: root/klm/util
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local>2011-03-21 15:55:14 -0400
committerKenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local>2011-03-21 15:55:14 -0400
commit78af1ef80f84023b4ff0661c47201850dbd46363 (patch)
tree0e14ff428d482a8155ad5aedf91f539df2efac53 /klm/util
parent21a136afad4d1b04cddc3ff1e105b0fc7e9d8c2c (diff)
Update error handling and a corner case of trie.
Diffstat (limited to 'klm/util')
-rw-r--r--klm/util/exception.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/klm/util/exception.cc b/klm/util/exception.cc
index 077405f4..84f9fe7c 100644
--- a/klm/util/exception.cc
+++ b/klm/util/exception.cc
@@ -9,11 +9,11 @@ Exception::Exception() throw() {}
Exception::~Exception() throw() {}
Exception::Exception(const Exception &from) : std::exception() {
- stream_.str(from.stream_.str());
+ stream_ << from.stream_.str();
}
Exception &Exception::operator=(const Exception &from) {
- stream_.str(from.stream_.str());
+ stream_ << from.stream_.str();
return *this;
}