mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
Made InitDictionary() a pure virtual function to force explicit initialization in derived classes.
This commit is contained in:
parent
11632e298e
commit
7996378ffb
@ -82,8 +82,7 @@ public:
|
||||
const ChartCellCollectionBase &) = 0;
|
||||
|
||||
//Initialises the dictionary (may involve loading from file)
|
||||
virtual bool InitDictionary()
|
||||
{ return true; }
|
||||
virtual bool InitDictionary() = 0;
|
||||
|
||||
//Get the dictionary. Be sure to initialise it first.
|
||||
const PhraseDictionary* GetDictionary() const;
|
||||
|
Loading…
Reference in New Issue
Block a user