]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another try to fix build on old systems
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 28 Jul 2022 12:12:53 +0000 (13:12 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 28 Jul 2022 12:12:53 +0000 (13:12 +0100)
src/libserver/symcache/symcache_impl.cxx

index 24c9851d49418f0018d20e7ad9115118f7d660a9..98244b06405871cdb5fca0b243475e8f7fd24483 100644 (file)
@@ -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;
                });