On Sat, 8 Feb 2003 03:06:02 -0600, Aleksey Gurtovoy
<[EMAIL PROTECTED]> wrote:

>Gennaro Prota wrote:
>> However, if we agree that when having autonomous next/prior we will
>> only use them to access next/prior< .. >::type and that the user
>> *must* specialize them for everything else 
>
>Nope, we don't. This should work out-of-box:
>
>    struct her_iterator
>    {
>        typedef /* unspecified */ next;
>    };
>
>    typedef mpl::next<her_iterator>::type t;

Ah! I thought next and prior were only meant as
"next_value"/"prior_value" and appliable only to types modeling some
numeric concept. I thought for iterators there was something like
"increment<>" and "decrement<>".

In (partial) justification of the mistake I can only say that the
documentation of next and prior in the 1.29.0 release is practically
blank.


Genny.

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

Reply via email to