make sure the iterator is bidirectional

(even if it's not strictly conforming to the C++ standard)
This commit is contained in:
Sébastien Loriot 2023-06-28 09:58:07 +02:00
parent b86667726c
commit 04a9026d37
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class Prevent_deref
Prevent_deref<I,Value_type>
, I // base
, Value_type // value
, boost::use_default
, typename std::iterator_traits<I>::iterator_category
, Value_type // ref
>
{
@ -52,7 +52,7 @@ public:
Prevent_deref<I,Value_type>
, I // base
, Value_type // value
, boost::use_default
, typename std::iterator_traits<I>::iterator_category
, Value_type // ref
> Base;
typedef typename Base::reference reference;