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
commit7acae787a81b7fe6b8f45191c3a8a0f5fd178593 (patch)
treee780165639c8d37ad3b2ed71d4a56f40388e8f19 /klm/util
parentbff7ea2fd228a1c80e8b85f6bbe562618ebdfe97 (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;
}