Boost logo

Boost Users :

Subject: Re: [Boost-users] [type_erasure] Problem with iterators
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-01-25 13:43:59


AMDG

On 01/24/2015 03:10 PM, Marco Guazzone wrote:
>
> Probably I haven't correctly understand your suggestion since now that
> I've commented the definition of "fwd_iter_impl_t" and replaced the
> "typedef" definition in "base" class with the following one:
>
> struct _t: te::precision { };
> struct _iter: te::precision { };
> //...
> typedef te::any< mpl::vector< te::forward_iterator<_iter, const _t&>,
> te::same_type<_t,
> te::forward_iterator<_iter, const _t&>::value_type>>,
> _iter> fwd_iter_type;
>

You still need same_type<_t, T>. (Yes, I realize
the interface for forward_iterator isn't the best.
same_type<_t, xxx::value_type> shouldn't be necessary,
at the very least.)

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net