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-02 22:12:39 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-16 22:03:22 +0300
commitcfb1ab34c7d3178e4264d5bba876ddef6125e18f (patch)
tree790d5bd02c9d0415ddfbfedec2c1b73aaf3a6fd6 /moses/FeatureVector.cpp
parent786258cb288e0711a2614bfd36d5ec83353ab5c2 (diff)
use util::StringStream
Diffstat (limited to 'moses/FeatureVector.cpp')
-rw-r--r--moses/FeatureVector.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp
index 4195c5636..344b1a8f8 100644
--- a/moses/FeatureVector.cpp
+++ b/moses/FeatureVector.cpp
@@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "FeatureVector.h"
#include "util/string_piece_hash.hh"
+#include "util/string_stream.hh"
using namespace std;
@@ -204,9 +205,10 @@ void FVector::save(const string& filename) const
{
ofstream out(filename.c_str());
if (!out) {
- ostringstream msg;
+ std::string str;
+ util::StringStream msg(str);
msg << "Unable to open " << filename;
- throw runtime_error(msg.str());
+ throw runtime_error(str);
}
write(out);
out.close();