diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-03 02:33:38 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-16 22:03:22 +0300 |
commit | b6231e8c73dee466f87f28c6d7afb34d51866169 (patch) | |
tree | a5f908bcf37e8e823698da018b2b3059ed453f75 /moses/FeatureVector.cpp | |
parent | dcea021cd7c6b1669a26d0808775c267972d595a (diff) |
make util::StringStream more like std::stringstream
Diffstat (limited to 'moses/FeatureVector.cpp')
-rw-r--r-- | moses/FeatureVector.cpp | 5 |
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(); |