From: Willem Jan Withagen Date: Tue, 9 Apr 2019 09:24:49 +0000 (+0200) Subject: test: Add includefile for arrays X-Git-Tag: v15.1.0~2979^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27455%2Fhead;p=ceph.git test: Add includefile for arrays Otherwise Clang will complain on FreeBSD: ``` /home/jenkins/workspace/ceph-master/src/test/test_weighted_shuffle.cc:9:23: error: implicit instantiation of undefined template 'std::__1::array' std::array choices{'a', 'b', 'c', 'd', 'e'}; ^ /usr/include/c++/v1/__tuple:223:64: note: template is declared here template struct _LIBCPP_TEMPLATE_VIS array; ^ /home/jenkins/workspace/ceph-master/src/test/test_weighted_shuffle.cc:10:22: error: implicit instantiation of undefined template 'std::__1::array' std::array weights{100, 50, 25, 10, 1}; ^ /usr/include/c++/v1/__tuple:223:64: note: template is declared here template struct _LIBCPP_TEMPLATE_VIS array; ``` Signed-off-by: Willem Jan Withagen --- diff --git a/src/test/test_weighted_shuffle.cc b/src/test/test_weighted_shuffle.cc index f920329c09ef..9f92cbdc0951 100644 --- a/src/test/test_weighted_shuffle.cc +++ b/src/test/test_weighted_shuffle.cc @@ -2,6 +2,7 @@ // vim: ts=8 sw=2 smarttab #include "common/weighted_shuffle.h" +#include #include #include "gtest/gtest.h"