Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/boost/dynamic_bitset/dynamic_bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ template< typename Iterator >
class bit_iterator_base
{
public:
typedef typename Iterator::iterator_category iterator_category;
typedef typename std::iterator_traits<Iterator>::iterator_category iterator_category;
typedef bool value_type;
typedef std::ptrdiff_t difference_type;
typedef value_type * pointer;
Expand All @@ -1446,7 +1446,7 @@ class bit_iterator_base
protected:
BOOST_DYNAMIC_BITSET_CONSTEXPR20 void increment();
BOOST_DYNAMIC_BITSET_CONSTEXPR20 void decrement();
BOOST_DYNAMIC_BITSET_CONSTEXPR20 void add( typename Iterator::difference_type n );
BOOST_DYNAMIC_BITSET_CONSTEXPR20 void add( typename std::iterator_traits<Iterator>::difference_type n );

Iterator m_block_iterator;
int m_bit_index = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/dynamic_bitset/impl/dynamic_bitset.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ bit_iterator_base< Iterator >::decrement()

template< typename Iterator >
BOOST_DYNAMIC_BITSET_CONSTEXPR20 void
bit_iterator_base< Iterator >::add( typename Iterator::difference_type n )
bit_iterator_base< Iterator >::add( typename std::iterator_traits<Iterator>::difference_type n )
{
typename Iterator::difference_type d = m_bit_index + n;
m_block_iterator += d / bits_per_block;
Expand Down
Loading