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/parse.cpp')
-rw-r--r--GIZA++-v2/parse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/GIZA++-v2/parse.cpp b/GIZA++-v2/parse.cpp
index c82f6b7..ebb136e 100644
--- a/GIZA++-v2/parse.cpp
+++ b/GIZA++-v2/parse.cpp
@@ -22,7 +22,7 @@ USA.
/* FJO 01/2001: completely reorganized parameter processing */
-#include <strstream>
+#include <sstream>
#include <string>
#include <fstream>
#include "defs.h"
@@ -71,7 +71,7 @@ void parseConfigFile (char * fname )
while(getline(Config_File, line)){
- istrstream buffer(line.c_str());
+ istringstream buffer(line);
word = attrib = attribval = "" ;
buffer >> word ;
if (word != "//"){ // if line does not start with "//" (i.e. not a comment)
@@ -81,7 +81,7 @@ void parseConfigFile (char * fname )
}
if(!(buffer >> attribval))
{
- istrstream buffer2(line.c_str());
+ istringstream buffer2(line);
buffer2>>attrib;
buffer2>>attribval;
}