13
0

std::iterator is deprecated in C++17, use bidirectional_iterator_tag

This commit is contained in:
Gon Solo 2022-11-09 09:41:48 +01:00 committed by Robin Gareus
parent 4cd01a5f6e
commit 1cf6886775
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -26,12 +26,14 @@ class LIBAUDIOGRAPHER_API FlagField
/// Bi-directional iterator for flag set. Iterates over flags that are set in this field.
class iterator
: public std::iterator<std::bidirectional_iterator_tag, Flag>
, public boost::less_than_comparable<iterator>
: public boost::less_than_comparable<iterator>
, boost::equivalent<iterator>
, boost::equality_comparable<iterator>
{
public:
using iterator_category = std::bidirectional_iterator_tag;
using value_type = Flag;
iterator (FlagField const & parent, Flag position) : parent (parent), position (position) {}
iterator (iterator const & other) : parent (other.parent), position (other.position) {}