Boost Users :
Subject: Re: [Boost-users] [type_erasure] Problem with iterators
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-01-30 11:43:21
On 01/30/2015 03:38 AM, Marco Guazzone wrote:
> Do you mean this?
> typedef mpl::vector< te::forward_iterator<_iter, const _t&>,
> te::same_type<_t, T>,
> te::forward_iterator<_iter, const _t&>::value_type> > requirements;
> typedef te::any< requirements, _iter> fwd_iter_type;
> If you do, I've tried but it doesn't work :( The entire code is here below.
> If you don't, could you please write in C++ your idea?
Yes, that's what I meant. The fact that it doesn't work
is a bug. You can try using forward_iterator<_iter, const double&>.
It isn't quite right because fwd_iter_type::value_type will
be wrong, though. Hmmm. Try this:
forward_iterator<_iter, const double&, std::ptrdiff_t, double>
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