libc++ up to version 14 does not support span deduction guides

This commit is contained in:
Ion Gaztañaga
2023-05-16 12:13:15 +02:00
parent b8b089730a
commit b14e7cedb0

View File

@@ -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