From: Yuval Lifshitz Date: Tue, 1 Oct 2024 15:19:46 +0000 (+0000) Subject: common: missing std include with GCC 14 X-Git-Tag: testing/wip-vshankar-testing-20241016.135728-debug~48^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ee16b099d540f2a60dd84fcbc69499c1b1e649a3;p=ceph-ci.git common: missing std include with GCC 14 In file included from src/rgw/driver/posix/bucket_cache.h:19, from src/test/rgw/test_posix_bucket_cache.cc:4: src/common/cohort_lru.h: In member function _void cohort::lru::TreeX::lock()_: src/common/cohort_lru.h:334:14: error: _for_each_ is not a member of _std_ 334 | std::for_each(locks.begin(), locks.end(), | ^~~~~~~~ src/common/cohort_lru.h: In member function _void cohort::lru::TreeX::unlock()_: /home/yuvalif/ceph5/src/common/cohort_lru.h:339:14: error: _for_each_ is not a member of _std_ 339 | std::for_each(locks.begin(), locks.end(), | ^~~~~~~~ Signed-off-by: Yuval Lifshitz --- diff --git a/src/common/cohort_lru.h b/src/common/cohort_lru.h index af2baaa5c67..86ced8d183c 100644 --- a/src/common/cohort_lru.h +++ b/src/common/cohort_lru.h @@ -15,6 +15,12 @@ #include #include +#include +#include +#include +#include +#include +#include #ifdef __CEPH__ # include "include/ceph_assert.h"