]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: need to give a type in list constructor
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 20 Nov 2018 00:13:37 +0000 (01:13 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 20 Nov 2018 12:55:03 +0000 (13:55 +0100)
commiteb9b0e8af9730c3e1ef1bf4e7e21340390f4365f
treec8779a5f5d39e6586ae25944f5d839f4ecf881fa
parent38e95b2d8a40df264ea685ad528f89c78e01da0c
rgw: need to give a type in list constructor

Clang complains about the missing type:
/home/jenkins/workspace/ceph-master/src/rgw/rgw_sync_module_es.cc:251:42: error: no viable constructor or deduction guide for deduction of template arguments of 'initializer_list'
  static constexpr std::initializer_list rgw_sys_attrs = {RGW_ATTR_PG_VER,
                                         ^
/usr/include/c++/v1/initializer_list:59:28: note: candidate function template not viable: requires 1 argument, but 7 were provided

Tried several type definitions, but this was the only one that make
Clang happy.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/rgw_sync_module_es.cc