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>
// -*- 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"