commit b786357: [Minor] Another try to fix build on old systems
Vsevolod Stakhov
vsevolod at rspamd.com
Thu Jul 28 12:14:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-07-28 13:12:53 +0100
URL: https://github.com/rspamd/rspamd/commit/b786357c32755c3ef59888b529990a2753d5a556 (HEAD -> master)
[Minor] Another try to fix build on old systems
---
src/libserver/symcache/symcache_impl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
});
More information about the Commits
mailing list