Bug fix in constructor.

This commit is contained in:
Ulrich Germann 2014-03-18 12:20:29 +00:00
parent a11b79175b
commit 4aa88aaf2c

View File

@ -145,9 +145,9 @@ namespace ugdiss
imTtrack(boost::shared_ptr<vector<vector<Token> > > const& d)
{
myData = d;
numTokens = 0;
BOOST_FOREACH(vector<Token> const& v, d)
numTokens += v.size();
numToks = 0;
BOOST_FOREACH(vector<Token> const& v, *d)
numToks += v.size();
}
template<typename Token>