Introduced template functions to unify enum<->string conversions

This commit is contained in:
Daniel Wolf
2016-03-08 21:44:57 +01:00
parent ad9d8e6567
commit 35ec1f8a45
11 changed files with 259 additions and 50 deletions

View File

@@ -287,7 +287,7 @@ map<centiseconds, Phone> getPhoneAlignment(const vector<s3wid_t>& wordIds, uniqu
// Add map entries
centiseconds start(startFrame);
result[start] = stringToPhone(phoneName);
result[start] = parseEnum<Phone>(phoneName);
centiseconds end(startFrame + duration);
result[end] = Phone::None;