]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: include string header 35853/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 30 Jun 2020 16:12:47 +0000 (16:12 +0000)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 30 Jun 2020 16:12:47 +0000 (16:12 +0000)
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<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
  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<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
    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 <wjw@digiware.nl>
src/rgw/rgw_b64.h

index 063f8744cbe24fbc716f0282fd4d49f431f6ba72..a1699ef61bcc85db31810832158dd7a58db79857 100644 (file)
@@ -10,6 +10,7 @@
 #include <boost/archive/iterators/transform_width.hpp>
 #include <boost/archive/iterators/remove_whitespace.hpp>
 #include <limits>
+#include <string>
 #include <string_view>
 
 namespace rgw {