std::list::back() is b0rken on Windows. Replacement.

synchronous Release_2.1.0-RC10
Volker Birk 2020-07-06 15:58:36 +02:00
parent 33debdfc61
commit 1c96b4d10e
1 changed files with 3 additions and 2 deletions

View File

@ -41,9 +41,10 @@ namespace pEp {
_cache.pop_front();
_cache.push_back({passphrase, clock::now()});
auto back = _cache.back();
auto back = _cache.end();
assert(!_cache.empty());
return back.passphrase.c_str();
auto result = (--back)->passphrase.c_str();
return result;
}
static const char *empty = "";