From: David Wells Date: Sun, 13 Aug 2017 23:35:19 +0000 (-0400) Subject: Skip a type checking test on older boost versions. X-Git-Tag: v9.0.0-rc1~1263^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae9b0c576cc6c2c91bbdd026b175b8cc0616a45;p=dealii.git 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. --- 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());