Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-03 02:33:38 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-16 22:03:22 +0300
commitb6231e8c73dee466f87f28c6d7afb34d51866169 (patch)
treea5f908bcf37e8e823698da018b2b3059ed453f75 /moses/FeatureVector.cpp
parentdcea021cd7c6b1669a26d0808775c267972d595a (diff)
make util::StringStream more like std::stringstream
Diffstat (limited to 'moses/FeatureVector.cpp')
-rw-r--r--moses/FeatureVector.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp
index 344b1a8f8..45a198c84 100644
--- a/moses/FeatureVector.cpp
+++ b/moses/FeatureVector.cpp
@@ -205,10 +205,9 @@ void FVector::save(const string& filename) const
{
ofstream out(filename.c_str());
if (!out) {
- std::string str;
- util::StringStream msg(str);
+ util::StringStream msg;
msg << "Unable to open " << filename;
- throw runtime_error(str);
+ throw runtime_error(msg.str());
}
write(out);
out.close();