From 3b5c7be852986485df0c3a3323acd2db00662d0f Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 9 Apr 2019 11:24:49 +0200 Subject: [PATCH] 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 --- src/test/test_weighted_shuffle.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/test_weighted_shuffle.cc b/src/test/test_weighted_shuffle.cc index f920329c09e..9f92cbdc095 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" -- 2.39.5