Fix virtual destructors

This commit is contained in:
Kenneth Heafield 2012-10-18 11:35:42 -04:00
parent 30c3175d14
commit 8e23e441c3
2 changed files with 4 additions and 2 deletions

View File

@ -41,6 +41,8 @@ public:
Phrase()
{}
virtual ~Phrase() {}
void AddWord(WordPtr word);
void AddWord(WordPtr word, size_t pos);

View File

@ -41,7 +41,7 @@ class Word
{
friend std::ostream& operator<<(std::ostream&, const Word&);
protected:
private:
bool m_isNonTerminal;
UINT64 m_vocabId;
@ -76,7 +76,7 @@ public:
const Vocab &vocab,
Moses::Word &overwrite) const;
virtual void DebugPrint(std::ostream &out, const Vocab &vocab) const;
void DebugPrint(std::ostream &out, const Vocab &vocab) const;
int Compare(const Word &compare) const;
bool operator<(const Word &compare) const;