]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: missing std include with GCC 14 60079/head
authorYuval Lifshitz <ylifshit@ibm.com>
Tue, 1 Oct 2024 15:19:46 +0000 (15:19 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Mon, 7 Oct 2024 09:52:59 +0000 (09:52 +0000)
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 <ylifshit@ibm.com>
src/common/cohort_lru.h

index af2baaa5c67bf061e480386bf2fdc00af8d21ea6..86ced8d183c71eb4308ebe171b12e14b44a31149 100644 (file)
 
 #include <boost/intrusive/list.hpp>
 #include <boost/intrusive/slist.hpp>
+#include <cstdint>
+#include <atomic>
+#include <mutex>
+#include <algorithm>
+#include <functional>
+#include <vector>
 
 #ifdef __CEPH__
 # include "include/ceph_assert.h"