diff --git a/include/hibf/misc/bit_vector.hpp b/include/hibf/misc/bit_vector.hpp index ad5bb4e7..f5f6a30d 100644 --- a/include/hibf/misc/bit_vector.hpp +++ b/include/hibf/misc/bit_vector.hpp @@ -947,7 +947,7 @@ class bit_vector : if (size > base_t::capacity()) base_t::reserve(size); -# ifndef _LIBCPP_HAS_NO_ASAN +# if defined(_LIBCPP_VERSION) && !defined(_LIBCPP_HAS_NO_ASAN) __sanitizer_annotate_contiguous_container(base_t::data(), base_t::data() + base_t::capacity(), base_t::data() + base_t::size(),