diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-03 03:05:46 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-16 22:03:22 +0300 |
commit | dd2bf5d9f3c8430eaaf3c2e9b730b93d43022786 (patch) | |
tree | 839b396c96ce6df889b9cb176449a7b15d0ab2c5 /moses/File.h | |
parent | b6231e8c73dee466f87f28c6d7afb34d51866169 (diff) |
make util::StringStream more like std::stringstream
Diffstat (limited to 'moses/File.h')
-rw-r--r-- | moses/File.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/File.h b/moses/File.h index fbf666ef9..793d8e7de 100644 --- a/moses/File.h +++ b/moses/File.h @@ -12,6 +12,7 @@ #include <sstream> #include <vector> #include "util/exception.hh" +#include "util/string_stream.hh" #include "TypeDef.h" #include "Util.h" @@ -147,7 +148,7 @@ inline OFF_T fTell(FILE* f) inline void fSeek(FILE* f,OFF_T o) { if(FSEEKO(f,o,SEEK_SET)<0) { - std::stringstream strme; + util::StringStream strme; strme << "ERROR: could not fseeko position " << o <<"\n"; if(o==InvalidOffT) strme << "You tried to seek for 'InvalidOffT'!\n"; UTIL_THROW2(strme.str()); |