]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: Add includefile for arrays 27455/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 09:24:49 +0000 (11:24 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 09:24:49 +0000 (11:24 +0200)
commit3b5c7be852986485df0c3a3323acd2db00662d0f
treee4c07e42102f26e18612a604b50debc75e45de2f
parent7cbbe9aceaee3677443af59c9a62a356b156129f
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<char, 5>'
  std::array<char, 5> choices{'a', 'b', 'c', 'd', 'e'};
                      ^
/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> 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<int, 5>'
  std::array<int, 5> weights{100, 50, 25, 10, 1};
                     ^
/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/test_weighted_shuffle.cc