Variant: Implemented custom UDA sorting

This commit is contained in:
Paul Beckingham 2015-04-04 15:47:41 -04:00
parent 743cb92958
commit 29a09707f3
3 changed files with 70 additions and 43 deletions

View file

@ -650,7 +650,9 @@ void Context::staticInitialization ()
std::string name = rc->first.substr (4, rc->first.length () - 7 - 4);
std::vector <std::string> values;
split (values, rc->second, ',');
Task::customOrder[name] = values;
for (auto r = values.rbegin(); r != values.rend (); ++r)
Task::customOrder[name].push_back (*r);
}
}