"David Abrahams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [...]
> Well I hope that was all instructive, but it was probably way more
> complicated than neccessary. I think it would actually be far superior
> to build a solution around an mpl iterator adaptor like this one:
>
>    template <class IteratorSeq> struct zip_iterator
>    {
>         typedef typename mpl::transform<
>               IteratorSeq,mpl::apply0<mpl::_1>
>          >::type type;
>
>         typedef zip_iterator<
>             typename mpl::transform<
>                IteratorSeq,mpl::next<mpl::_1>
>             >::type
>         > next;
>    };
> [...]

Hey, you just wrote an MPL iterator adaptor!  Cool!

Dave




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to