From eb30631ec3d081fd1bc2cdbd4812a334de9e1282 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 29 Jan 2015 10:15:02 -0700 Subject: [PATCH] support Boost 1.57.0 Sometime after 1.55, boost introduced a forward declaration of operator<< in optional.hpp. In 1.55 and earlier, when << was used without the _io having been included, what got dumped was an implicit bool conversion. http://tracker.ceph.com/issues/10688 Refs: #10688 Signed-off-by: Ken Dreyer (cherry picked from commit 85717394c33137eb703a7b88608ec9cf3287f67a) Conflicts: src/include/encoding.h trivial conflict --- src/common/map_cacher.hpp | 2 +- src/include/encoding.h | 2 +- src/os/DBObjectMap.h | 2 +- src/osd/ECBackend.cc | 2 +- src/osd/ECBackend.h | 2 +- src/osd/ECTransaction.cc | 2 +- src/osd/ECTransaction.h | 2 +- src/osd/ReplicatedPG.h | 2 +- src/osd/osd_types.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/map_cacher.hpp b/src/common/map_cacher.hpp index 101a0be96d9..652d0a26e3c 100644 --- a/src/common/map_cacher.hpp +++ b/src/common/map_cacher.hpp @@ -16,7 +16,7 @@ #define MAPCACHER_H #include -#include +#include #include "include/memory.h" #include #include diff --git a/src/include/encoding.h b/src/include/encoding.h index d19b60e9eea..3f029c3c70c 100644 --- a/src/include/encoding.h +++ b/src/include/encoding.h @@ -286,7 +286,7 @@ inline void decode(T &o, bufferlist& bl) #include #include #include -#include +#include #ifndef _BACKWARD_BACKWARD_WARNING_H #define _BACKWARD_BACKWARD_WARNING_H // make gcc 4.3 shut up about hash_* diff --git a/src/os/DBObjectMap.h b/src/os/DBObjectMap.h index f20c6e8efc9..48e973c09e6 100644 --- a/src/os/DBObjectMap.h +++ b/src/os/DBObjectMap.h @@ -17,7 +17,7 @@ #include "common/Mutex.h" #include "common/Cond.h" #include "common/simple_cache.hpp" -#include +#include /** * DBObjectMap: Implements ObjectMap in terms of KeyValueDB diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 78e7699ae85..29071dddedc 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -13,7 +13,7 @@ */ #include -#include +#include #include #include diff --git a/src/osd/ECBackend.h b/src/osd/ECBackend.h index f6199ff3212..3b1baebabcf 100644 --- a/src/osd/ECBackend.h +++ b/src/osd/ECBackend.h @@ -18,7 +18,7 @@ #include "OSD.h" #include "PGBackend.h" #include "osd_types.h" -#include +#include #include "erasure-code/ErasureCodeInterface.h" #include "ECTransaction.h" #include "ECMsgTypes.h" diff --git a/src/osd/ECTransaction.cc b/src/osd/ECTransaction.cc index c25023c481c..b95cdf7c371 100644 --- a/src/osd/ECTransaction.cc +++ b/src/osd/ECTransaction.cc @@ -13,7 +13,7 @@ */ #include -#include +#include #include #include #include diff --git a/src/osd/ECTransaction.h b/src/osd/ECTransaction.h index 7b104c7e254..fc31cde78e4 100644 --- a/src/osd/ECTransaction.h +++ b/src/osd/ECTransaction.h @@ -19,7 +19,7 @@ #include "PGBackend.h" #include "osd_types.h" #include "ECUtil.h" -#include +#include #include "erasure-code/ErasureCodeInterface.h" class ECTransaction : public PGBackend::PGTransaction { diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index c4490f3a724..f566d21fea5 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -17,7 +17,7 @@ #ifndef CEPH_REPLICATEDPG_H #define CEPH_REPLICATEDPG_H -#include +#include #include #include "include/assert.h" diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index 988cebe6959..fcb51f0e9ad 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include "include/rados/rados_types.hpp" -- 2.47.3