mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-11 05:23:52 +00:00
changed reference type of counting_iterator to avoid problems on VC++
[SVN r8474]
This commit is contained in:
parent
42ddb0d47b
commit
0c68369f23
@ -35,14 +35,14 @@ namespace boost {
|
||||
template <class IntegerType>
|
||||
struct counting_iterator_policies : public default_iterator_policies
|
||||
{
|
||||
const IntegerType&
|
||||
dereference(type<const IntegerType&>, const IntegerType& i) const
|
||||
IntegerType
|
||||
dereference(type<IntegerType>, const IntegerType& i) const
|
||||
{ return i; }
|
||||
};
|
||||
template <class IntegerType>
|
||||
struct counting_iterator_traits {
|
||||
typedef IntegerType value_type;
|
||||
typedef const IntegerType& reference;
|
||||
typedef IntegerType reference;
|
||||
typedef value_type* pointer;
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
typedef std::random_access_iterator_tag iterator_category;
|
||||
|
Loading…
x
Reference in New Issue
Block a user