Check Boost.Move's BOOST_MOVE_CONTIGUOUS_ITERATOR_TAG before using contiguous_iterator_tag

This commit is contained in:
Ion Gaztañaga
2022-01-04 16:44:07 +01:00
parent 2554e9671d
commit 19e68ee050

View File

@ -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<Pointer>::element_type value_type;
//Defining element_type to make libstdc++'s std::pointer_traits well-formed leads to ambiguity