Merge pull request #5840 from yandex/gcc-7-compatibility

Compatibility with old compiler (gcc-7)
This commit is contained in:
alexey-milovidov 2019-07-03 00:42:03 +03:00 committed by GitHub
commit 7f8c8382ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,8 +403,8 @@ public:
bool hasCurrentlyLoadedObjects() const
{
std::lock_guard lock{mutex};
for (auto & [name, info] : infos)
if (info.loaded())
for (auto & name_info : infos)
if (name_info.second.loaded())
return true;
return false;
}