]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: use a struct instead of std::tuple in AWS's VersionAbstractor.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 23 Jun 2017 10:05:54 +0000 (06:05 -0400)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 23 Jun 2017 10:23:02 +0000 (06:23 -0400)
commit2baed294ce1ed94a1b42fe131a396f8873b931b5
tree6da2e6466d61a0199f1d20ab47de1d2668d45cd0
parent94418464d16da6cdf2ac5d5001e615e97b93541b
rgw: use a struct instead of std::tuple in AWS's VersionAbstractor.

The C++11 standard mandates the variadic constructor of std::tuple
to be explicit. As a result, we can't use the uniform initialization
syntax in return statements. Moreover, the tuples became too verbose
after the AWSv4 rework.

See: https://stackoverflow.com/a/14961849
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h