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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 02:05:51 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 04:08:05 +0300
commit9826599cb089611f78532e583acb467572868732 (patch)
treebf9d0844287da6d25d58cdcc817e7563a053bd64 /moses/Parameter.h
parentd7278293877afe443a8668d5abea25bb37542c6e (diff)
Enforce const-ness of command line arguments; bug fix in mosesserver.cpp.
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r--moses/Parameter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h
index bc3415245..32065885b 100644
--- a/moses/Parameter.h
+++ b/moses/Parameter.h
@@ -57,8 +57,9 @@ protected:
std::map<std::string, std::vector<float> > m_weights;
- std::string FindParam(const std::string &paramSwitch, int argc, char* argv[]);
- void OverwriteParam(const std::string &paramSwitch, const std::string &paramName, int argc, char* argv[]);
+ std::string FindParam(const std::string &paramSwitch, int argc, char const* argv[]);
+ void OverwriteParam(const std::string &paramSwitch, const std::string &paramName,
+ int argc, char const* argv[]);
bool ReadConfigFile(const std::string &filePath );
bool FilesExist(const std::string &paramName, int fieldNo, std::vector<std::string> const& fileExtension=std::vector<std::string>(1,""));
bool isOption(const char* token);
@@ -113,7 +114,7 @@ protected:
public:
Parameter();
~Parameter();
- bool LoadParam(int argc, char* argv[]);
+ bool LoadParam(int argc, char const* argv[]);
bool LoadParam(const std::string &filePath);
void Explain();