From: Willem Jan Withagen Date: Tue, 30 Jun 2020 16:12:47 +0000 (+0000) Subject: rgw: include string header X-Git-Tag: v16.1.0~1773^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2dfd0e47b78f07bea0734b598732ad253671dc2;p=ceph.git rgw: include string header Otherwise we get complaints from the compiler on FreeBS/Clang: In file included from /home/jenkins/workspace/ceph-master/src/rgw/rgw_sync_module_es.cc:4: /home/jenkins/workspace/ceph-master/src/rgw/rgw_b64.h:28:22: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' inline std::string to_base64(std::string_view sview) ^ /usr/include/c++/v1/iosfwd:210:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/jenkins/workspace/ceph-master/src/rgw/rgw_sync_module_es.cc:4: /home/jenkins/workspace/ceph-master/src/rgw/rgw_b64.h:51:17: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' std::string outstr(b64_iter(sview.data()), ^ /usr/include/c++/v1/iosfwd:210:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; .............. more errors ^ /home/jenkins/workspace/ceph-master/src/rgw/rgw_sync_module_es.cc:193:59: error: no matching function for call to 'to_base64' default_headers.emplace("AUTHORIZATION", "Basic " + rgw::to_base64(auth_string)); ^~~~~~~~~~~~~~ /home/jenkins/workspace/ceph-master/src/rgw/rgw_b64.h:28:22: note: candidate template ignored: substitution failure [with wrap_width = 2147483647] inline std::string to_base64(std::string_view sview) Signed-off-by: Willem Jan Withagen --- diff --git a/src/rgw/rgw_b64.h b/src/rgw/rgw_b64.h index 063f8744cbe2..a1699ef61bcc 100644 --- a/src/rgw/rgw_b64.h +++ b/src/rgw/rgw_b64.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace rgw {