Commit d6c1738e authored by kraus's avatar kraus

fixing lambda function for lexical sorting

parent 74e52da3
......@@ -182,7 +182,7 @@ void IpplTimings::print() {
auto begin = ++ TimerList.begin();
auto end = TimerList.end();
std::sort(begin, end, [](my_auto_ptr<TimerInfo>& a, my_auto_ptr<TimerInfo>& b)
std::sort(begin, end, [](const my_auto_ptr<TimerInfo>& a, const my_auto_ptr<TimerInfo>& b)
{
return boost::ilexicographical_compare(a->name, b->name);
});
......@@ -264,7 +264,7 @@ void IpplTimings::print(std::string fn) {
auto begin = ++ TimerList.begin();
auto end = TimerList.end();
std::sort(begin, end, [](my_auto_ptr<TimerInfo>& a, my_auto_ptr<TimerInfo>& b)
std::sort(begin, end, [](const my_auto_ptr<TimerInfo>& a, const my_auto_ptr<TimerInfo>& b)
{
return boost::ilexicographical_compare(a->name, b->name);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment