return file (p);
}
-static
-bool
-cpl_summary_compare (CPLSummary const & a, CPLSummary const & b)
-{
- return a.last_write_time > b.last_write_time;
-}
/** Find all the DCPs in our directory that can be dcp::DCP::read() and return details of their CPLs.
* The list will be returned in reverse order of timestamp (i.e. most recent first).
}
}
- sort (out.begin(), out.end(), cpl_summary_compare);
+ sort(out.begin(), out.end(), [](CPLSummary const& a, CPLSummary const& b) {
+ return a.last_write_time > b.last_write_time;
+ });
return out;
}