diff --git a/include/boost/container/experimental/segmented_iterator_traits.hpp b/include/boost/container/experimental/segmented_iterator_traits.hpp index 0026e68..3d070f6 100644 --- a/include/boost/container/experimental/segmented_iterator_traits.hpp +++ b/include/boost/container/experimental/segmented_iterator_traits.hpp @@ -374,7 +374,9 @@ struct deepest_local_iterator #endif #endif -#if defined(BOOST_CONTAINER_SEGMENTED_ENABLE_PRAGMA_UNROLL) +#if defined(BOOST_CONTAINER_SEGMENTED_ENABLE_PRAGMA_UNROLL) && defined(BOOST_CONTAINER_SEGMENTED_DISABLE_PRAGMA_UNROLL) +#error "Can't define both BOOST_CONTAINER_SEGMENTED_ENABLE_PRAGMA_UNROLL and BOOST_CONTAINER_SEGMENTED_DISABLE_PRAGMA_UNROLL" +#elif defined(BOOST_CONTAINER_SEGMENTED_ENABLE_PRAGMA_UNROLL) #define BOOST_CONTAINER_SEGMENTED_UNROLL(N) BOOST_CONTAINER_UNROLL(N) #define BOOST_CONTAINER_SEGMENTED_AUTO_UNROLL BOOST_CONTAINER_AUTO_UNROLL #elif defined(BOOST_CONTAINER_SEGMENTED_DISABLE_PRAGMA_UNROLL)