From 19e68ee05092ea3d107904a3d2b38a94494c62f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 4 Jan 2022 16:44:07 +0100 Subject: [PATCH] Check Boost.Move's BOOST_MOVE_CONTIGUOUS_ITERATOR_TAG before using contiguous_iterator_tag --- include/boost/container/vector.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index a7e538d..a9821cb 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -82,7 +82,9 @@ class vec_iterator { public: typedef std::random_access_iterator_tag iterator_category; + #ifdef BOOST_MOVE_CONTIGUOUS_ITERATOR_TAG typedef std::contiguous_iterator_tag iterator_concept; + #endif typedef typename boost::intrusive::pointer_traits::element_type value_type; //Defining element_type to make libstdc++'s std::pointer_traits well-formed leads to ambiguity