Aleksey Gurtovoy wrote:
> If not, then wrapping it into 'intrusive_list' is probably the best we > can do:Ok, but what if I don't want to alter first, second and third?
That is, I have some set of classes that define types like this
but they were never originally intended to represent a sequence.
It just happens that I want to maipulate a set of these types
formed by the typedef members they define.Is the sequence always the same? E.g. do you always operate on 'first', 'second', and 'third', or sometimes it's 'second' and 'third' only, or even the 'third' only?If the former, then you only need to specialize 'begin/end' for the 'first' type, and you are done:
I do need to be able to start at various points within the sequence.
Your second solution fleshes out the design I had in mind, but I
was out of town over the weekend so you beat me to the punch. :)
Thanks again, I am really loving MPL!
-Dave
--
"Some little people have music in them, but Fats, he was all music,
and you know how big he was." -- James P. Johnson
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost