Borland workarounds

[SVN r12251]
This commit is contained in:
Dave Abrahams
2002-01-08 18:36:26 +00:00
parent 15a7a839f9
commit ebcb4d861a

View File

@ -199,15 +199,20 @@ struct counting_iterator_policies : public default_iterator_policies
template <class Incrementable> template <class Incrementable>
struct counting_iterator_generator struct counting_iterator_generator
{ {
typedef counting_iterator_traits<Incrementable> traits; typedef typename boost::remove_const<
Incrementable
>::type value_type;
typedef iterator_adaptor<Incrementable, typedef counting_iterator_traits<value_type> traits;
counting_iterator_policies<Incrementable>,
Incrementable, typedef iterator_adaptor<
const Incrementable&, value_type
const Incrementable*, , counting_iterator_policies<value_type>
typename traits::iterator_category, , value_type
typename traits::difference_type , value_type const&
, value_type const*
, typename traits::iterator_category
, typename traits::difference_type
> type; > type;
}; };