Skip to content

Commit

Permalink
compiling on mac os x maverics
Browse files Browse the repository at this point in the history
Doing an explicit template instantiation for the addTag function
does the work.
  • Loading branch information
eiennohito committed May 19, 2014
1 parent 9018d06 commit 782553f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/kytea.cpp
Expand Up @@ -74,6 +74,11 @@ void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaStr
Entry::setInDict(it->second->inDict,dict);
}
}


template
void Kytea::addTag<ModelTagEntry>(Dictionary<ModelTagEntry>::WordMap& allWords, const KyteaString & word, int lev, const KyteaString * tag, int dict);

template <class Entry>
void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaString & word, const KyteaTag * tag, int dict) {
addTag<Entry>(allWords,word,(tag?&tag->first:0),dict);
Expand Down

0 comments on commit 782553f

Please sign in to comment.