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:
authorKenneth Heafield <github@kheafield.com>2012-01-14 21:07:31 +0400
committerKenneth Heafield <github@kheafield.com>2012-01-14 21:07:31 +0400
commitd49cc6c9f8305b014ce00ee21e31abab83d4eeab (patch)
tree1ed8339ac61368b76e7427829a946a424e0038ae /lm/model.hh
parent23c79b81693e883172737c5ea7ee02112f14174b (diff)
Make lm constructor explicit
Diffstat (limited to 'lm/model.hh')
-rw-r--r--lm/model.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lm/model.hh b/lm/model.hh
index 731d60b7e..6ea62a789 100644
--- a/lm/model.hh
+++ b/lm/model.hh
@@ -90,7 +90,7 @@ template <class Search, class VocabularyT> class GenericModel : public base::Mod
* TrieModel. To classify binary files, call RecognizeBinary in
* lm/binary_format.hh.
*/
- GenericModel(const char *file, const Config &config = Config());
+ explicit GenericModel(const char *file, const Config &config = Config());
/* Score p(new_word | in_state) and incorporate new_word into out_state.
* Note that in_state and out_state must be different references: