From: Willem Jan Withagen Date: Tue, 20 Nov 2018 00:13:37 +0000 (+0100) Subject: rgw: need to give a type in list constructor X-Git-Tag: v14.1.0~755^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eb9b0e8af9730c3e1ef1bf4e7e21340390f4365f;p=ceph.git 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 --- diff --git a/src/rgw/rgw_sync_module_es.cc b/src/rgw/rgw_sync_module_es.cc index 9d6222476dd..ddbf40beae2 100644 --- a/src/rgw/rgw_sync_module_es.cc +++ b/src/rgw/rgw_sync_module_es.cc @@ -248,7 +248,8 @@ struct es_index_config { }; static bool is_sys_attr(const std::string& attr_name){ - static constexpr std::initializer_list rgw_sys_attrs = {RGW_ATTR_PG_VER, + static constexpr std::initializer_list rgw_sys_attrs = + {RGW_ATTR_PG_VER, RGW_ATTR_SOURCE_ZONE, RGW_ATTR_ID_TAG, RGW_ATTR_TEMPURL_KEY1,