]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_swift: newer versions of boost/utility no longer include in_place 10026/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 20 Jun 2016 13:56:50 +0000 (15:56 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 29 Jun 2016 19:31:27 +0000 (21:31 +0200)
boost > 1.58 no longer includes in_place in boost/utility, we need to
include in_place_factory explicitly. This causes build failures in
distros that ship with a higher version of boost. Since the only call is for
swift_ver_location, another possibility is to use emplace()
instead (though this requires boost ~ 1.56)

Fixes: http://tracker.ceph.com/issues/16391
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit a14f0f3869bb7defa7587ad9ccb18c3f086b2c3d)

Conflicts:
src/rgw/rgw_rest_swift.cc
    jewel does not have #include <boost/optional.hpp>

src/rgw/rgw_rest_swift.cc

index a9bf03e7ff08cb09a747cd35362bd66e8759861e..52e280dbc7539c78d3408f4197c62038bcd10dfc 100644 (file)
@@ -1,6 +1,8 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include <boost/utility/in_place_factory.hpp>
+
 #include "include/assert.h"
 
 #include "common/Formatter.h"