]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
support Boost 1.57.0
authorPetr Machata <pmachata@redhat.com>
Thu, 29 Jan 2015 17:15:02 +0000 (10:15 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 1 Feb 2015 14:36:01 +0000 (15:36 +0100)
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 <kdreyer@redhat.com>
(cherry picked from commit 85717394c33137eb703a7b88608ec9cf3287f67a)

Conflicts:
src/include/encoding.h
        trivial conflict

src/common/map_cacher.hpp
src/include/encoding.h
src/os/DBObjectMap.h
src/osd/ECBackend.cc
src/osd/ECBackend.h
src/osd/ECTransaction.cc
src/osd/ECTransaction.h
src/osd/ReplicatedPG.h
src/osd/osd_types.h

index 101a0be96d927f4c596b004ca001f124cfc85926..652d0a26e3c4e6db7aaadee2c6957926ce1b4ff4 100644 (file)
@@ -16,7 +16,7 @@
 #define MAPCACHER_H
 
 #include <boost/scoped_ptr.hpp>
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include "include/memory.h"
 #include <set>
 #include <map>
index d19b60e9eeaefbcdc51a59aa6a58f498b4ad0085..3f029c3c70cb2bb5a48a5ae0b0e48979e339eaf5 100644 (file)
@@ -286,7 +286,7 @@ inline void decode(T &o, bufferlist& bl)
 #include <deque>
 #include <vector>
 #include <string>
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 
 #ifndef _BACKWARD_BACKWARD_WARNING_H
 #define _BACKWARD_BACKWARD_WARNING_H   // make gcc 4.3 shut up about hash_*
index f20c6e8efc9a10403ff889efe6fa3ca2d5cff2a9..48e973c09e6305c647f3692603841b1c41f9afc1 100644 (file)
@@ -17,7 +17,7 @@
 #include "common/Mutex.h"
 #include "common/Cond.h"
 #include "common/simple_cache.hpp"
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 
 /**
  * DBObjectMap: Implements ObjectMap in terms of KeyValueDB
index 78e7699ae85b6f6da2ef89561cfc8d501af2ea98..29071dddedc64aa1073a391455f30c18e7f61048 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include <boost/variant.hpp>
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include <iostream>
 #include <sstream>
 
index f6199ff32125f7ddba4130adc7ab530e179a998b..3b1baebabcfe4e8e740c9a2ce25fa8e8f857889d 100644 (file)
@@ -18,7 +18,7 @@
 #include "OSD.h"
 #include "PGBackend.h"
 #include "osd_types.h"
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include "erasure-code/ErasureCodeInterface.h"
 #include "ECTransaction.h"
 #include "ECMsgTypes.h"
index c25023c481ce240c5d3e4c3ee5ddefbcf5161619..b95cdf7c371353711db39d0797f887f370b5a55f 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include <boost/variant.hpp>
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include <iostream>
 #include <vector>
 #include <sstream>
index 7b104c7e254f40fe484c3688a32e9fd777dfc778..fc31cde78e47e75fffdc2f03b908eae263d799a6 100644 (file)
@@ -19,7 +19,7 @@
 #include "PGBackend.h"
 #include "osd_types.h"
 #include "ECUtil.h"
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include "erasure-code/ErasureCodeInterface.h"
 
 class ECTransaction : public PGBackend::PGTransaction {
index c4490f3a724fc84869b323c426e3b0fc000870f0..f566d21fea5a27efdaa4c095ea8358190203e940 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef CEPH_REPLICATEDPG_H
 #define CEPH_REPLICATEDPG_H
 
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 #include <boost/tuple/tuple.hpp>
 
 #include "include/assert.h" 
index 988cebe69597f9f0b7a8c390f889c1ebf0d0a3c7..fcb51f0e9adaabf99898ebb886ac66e125be3b8f 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdio.h>
 #include <memory>
 #include <boost/scoped_ptr.hpp>
-#include <boost/optional.hpp>
+#include <boost/optional/optional_io.hpp>
 
 #include "include/rados/rados_types.hpp"