File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
include/boost/dynamic_bitset Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1426,7 +1426,7 @@ template< typename Iterator >
14261426class bit_iterator_base
14271427{
14281428public:
1429- typedef typename Iterator::iterator_category iterator_category;
1429+ typedef typename std::iterator_traits< Iterator> ::iterator_category iterator_category;
14301430 typedef bool value_type;
14311431 typedef std::ptrdiff_t difference_type;
14321432 typedef value_type * pointer;
@@ -1446,7 +1446,7 @@ class bit_iterator_base
14461446protected:
14471447 BOOST_DYNAMIC_BITSET_CONSTEXPR20 void increment ();
14481448 BOOST_DYNAMIC_BITSET_CONSTEXPR20 void decrement ();
1449- BOOST_DYNAMIC_BITSET_CONSTEXPR20 void add ( typename Iterator::difference_type n );
1449+ BOOST_DYNAMIC_BITSET_CONSTEXPR20 void add ( typename std::iterator_traits< Iterator> ::difference_type n );
14501450
14511451 Iterator m_block_iterator;
14521452 int m_bit_index = 0 ;
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ bit_iterator_base< Iterator >::decrement()
185185
186186template < typename Iterator >
187187BOOST_DYNAMIC_BITSET_CONSTEXPR20 void
188- bit_iterator_base< Iterator >::add( typename Iterator::difference_type n )
188+ bit_iterator_base< Iterator >::add( typename std::iterator_traits< Iterator> ::difference_type n )
189189{
190190 typename Iterator::difference_type d = m_bit_index + n;
191191 m_block_iterator += d / bits_per_block;
You can’t perform that action at this time.
0 commit comments