From f2dfd0e47b78f07bea0734b598732ad253671dc2 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 30 Jun 2020 16:12:47 +0000 Subject: [PATCH] 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 --- src/rgw/rgw_b64.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_b64.h b/src/rgw/rgw_b64.h index 063f8744cbe..a1699ef61bc 100644 --- a/src/rgw/rgw_b64.h +++ b/src/rgw/rgw_b64.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace rgw { -- 2.47.3