Skip to content

Commit ee16b09

Browse files
committed
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<T, TTree, CLT, CEQ, K, LK>::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<T, TTree, CLT, CEQ, K, LK>::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 <[email protected]>
1 parent d1aed64 commit ee16b09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/cohort_lru.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
#include <boost/intrusive/list.hpp>
1717
#include <boost/intrusive/slist.hpp>
18+
#include <cstdint>
19+
#include <atomic>
20+
#include <mutex>
21+
#include <algorithm>
22+
#include <functional>
23+
#include <vector>
1824

1925
#ifdef __CEPH__
2026
# include "include/ceph_assert.h"

0 commit comments

Comments
 (0)