From 2ae9b0c576cc6c2c91bbdd026b175b8cc0616a45 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 13 Aug 2017 19:35:19 -0400 Subject: [PATCH] Skip a type checking test on older boost versions. Boost 1.57 does not correctly implement static_vector::const_iterator, but newer versions of boost fix this problem. --- tests/base/array_view_09.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/base/array_view_09.cc b/tests/base/array_view_09.cc index 7b95c78680..2ccf3d9ec4 100644 --- a/tests/base/array_view_09.cc +++ b/tests/base/array_view_09.cc @@ -97,6 +97,10 @@ void test () const auto a = make_array_view(v.cbegin() + 2, v.cend()); AssertThrow(a.size() + 2 == v.size(), ExcInternalError()); + // some older versions of boost (1.57 in particular) do not implement + // static_vector::cbegin() and static_vector::cend() correctly, so ignore + // the type checking in that case +#if BOOST_VERSION >= 106200 // a should be const ArrayView static_assert(std::is_const::value, "a should not be const (but has const value)"); @@ -106,6 +110,7 @@ void test () "type should be const"); static_assert(is_const_reference(), "type should be const"); +#endif v[2] = 10.0; AssertThrow(a[0] == v[2], ExcInternalError()); -- 2.39.5