From b14e7cedb0ba49af8475e78e7b375cdfffc72b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 16 May 2023 12:13:15 +0200 Subject: [PATCH] libc++ up to version 14 does not support span deduction guides --- test/vector_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/vector_test.cpp b/test/vector_test.cpp index 5dc3631..3a98596 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -200,7 +200,8 @@ bool test_merge_empty_free() return !empty.get_stored_allocator().deallocate_called_without_allocate_; } -#if defined(__cpp_lib_span) +#if defined(__cpp_lib_span) && (!defined(_LIBCPP_VERSION) || (_LIBCPP_VERSION >= 15000)) +//libcpp 14 does not correctly support deduction guides for Span # define BOOST_VECTOR_TEST_HAS_SPAN #endif