]> 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 9817/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 20 Jun 2016 13:56:50 +0000 (15:56 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 20 Jun 2016 13:56:50 +0000 (15:56 +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>
src/rgw/rgw_rest_swift.cc

index 0930ea77439869c57e0e3bdfe02796cf6bd80dc0..3a3537ba8027675eb26c79d388a0f3aaf619796c 100644 (file)
@@ -2,6 +2,7 @@
 // vim: ts=8 sw=2 smarttab
 
 #include <boost/optional.hpp>
+#include <boost/utility/in_place_factory.hpp>
 
 #include "include/assert.h"