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

@@ -80,7 +80,7 @@ map<centiseconds, Shape> animate(const map<centiseconds, Phone> &phones) {
for (auto it = shapes.cbegin(); it != shapes.cend(); ++it) {
if (next(it) == shapes.cend()) break;
logTimedEvent("shape", it->first, next(it)->first, shapeToString(it->second));
logTimedEvent("shape", it->first, next(it)->first, enumToString(it->second));
}
return shapes;