Open
Description
This piece of code causes a crash when compiled in Visual Studio C++:
Phonetisaurus/src/include/PhonetisaurusRex.h
Line 117 in f08d3df
Interestingly, it seems to work under Linux. In any case, this is a little iffy approach, since referencing the brackets operator beyond the vector is generally incorrect, even if it is only used as a last iterator in this case. A fix for this line is to simply use:
vector<int> subv (word.begin()+i, word.begin()+i+j);
Metadata
Metadata
Assignees
Labels
No labels