mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-21107 Replace use of adapter and binder classes removed in C++17.
This commit is contained in:
parent
c8336085bb
commit
7cec4a9308
1 changed files with 1 additions and 6 deletions
|
@ -1190,11 +1190,6 @@ ostream& printStringList( ostream& os, const ZoneMap& zoneinfo) {
|
|||
// main
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
// Unary predicate for finding transitions after a given time
|
||||
bool isAfter(const Transition t, int64_t thresh) {
|
||||
return t.time >= thresh;
|
||||
}
|
||||
|
||||
/**
|
||||
* A zone type that contains only the raw and dst offset. Used by the
|
||||
* optimizeTypeList() method.
|
||||
|
@ -1371,7 +1366,7 @@ void ZoneInfo::mergeFinalData(const FinalZone& fz) {
|
|||
|
||||
vector<Transition>::iterator it =
|
||||
find_if(transitions.begin(), transitions.end(),
|
||||
bind2nd(ptr_fun(isAfter), seconds));
|
||||
[seconds](const Transition& t) { return t.time >= seconds; });
|
||||
transitions.erase(it, transitions.end());
|
||||
|
||||
if (finalYear != -1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue