From: Vsevolod Stakhov Date: Thu, 28 Jul 2022 12:12:53 +0000 (+0100) Subject: [Minor] Another try to fix build on old systems X-Git-Tag: 3.3~103 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b786357c32755c3ef59888b529990a2753d5a556;p=rspamd.git [Minor] Another try to fix build on old systems --- diff --git a/src/libserver/symcache/symcache_impl.cxx b/src/libserver/symcache/symcache_impl.cxx index 24c9851d4..98244b064 100644 --- a/src/libserver/symcache/symcache_impl.cxx +++ b/src/libserver/symcache/symcache_impl.cxx @@ -150,7 +150,7 @@ auto symcache::init() -> bool items_by_symbol.erase(deleted_element_refcount->get_name()); auto &additional_vec = get_item_specific_vector(*deleted_element_refcount); -#if __cplusplus >= 202002L || defined(__cpp_lib_erase_if) +#if defined(__cpp_lib_erase_if) std::erase_if(additional_vec, [id_to_disable](const cache_item_ptr &elt) { return elt->id == id_to_disable; });