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

github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GIZA++-v2/D4Tables.h')
-rw-r--r--GIZA++-v2/D4Tables.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/GIZA++-v2/D4Tables.h b/GIZA++-v2/D4Tables.h
index a6d1335..e047bcc 100644
--- a/GIZA++-v2/D4Tables.h
+++ b/GIZA++-v2/D4Tables.h
@@ -120,7 +120,7 @@ class compareb1
inline void tokenize(const string&in,Vector<string>&out)
{
string s;
- istrstream l(in.c_str());
+ istringstream l(in);
while(l>>s)
out.push_back(s);
}
@@ -385,7 +385,7 @@ class d4model
int value;
double count;
getline(file,line);
- istrstream twonumbers(line.c_str());
+ istringstream twonumbers(line);
if(twonumbers >> value >> count)
{
if( D1.count(k)==0 )
@@ -444,7 +444,7 @@ class d4model
int value;
double count;
getline(file,line);
- istrstream twonumbers(line.c_str());
+ istringstream twonumbers(line);
if(twonumbers >> value >> count)
{
if( Db1.count(k)==0 )