31 Jan
2015
31 Jan
'15
3:02 p.m.
On Fri, Jan 30, 2015 at 5:43 PM, Steven Watanabe
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>
Steven, I really thank you. It works! Just for anyone interested on this, here is the working solution (I just put the important changes; the rest of the code is the same as before): typedef mpl::vector< te::forward_iterator<_iter, const T&, std::ptrdiff_t, T> > requirements; typedef te::any< requirements, _iter> fwd_iter_type; Best, -- Marco