
Stjepan Rajko wrote:
Hello,
I just noticed `repetitive_view` in boost/fusion/view. It doesn't appear to be documented, but judging from the test, it appears that repetitive_view<Sequence> is an infinite repetition of the elements of the sequence. Is that correct?
I would find this extremely useful, but I'm slightly put off by the lack of documentation and the fact that it results in a (not currently officially supported?) infinite sequence.
What is the status of repetitive_view? Is it safe to use?
Stjepan
P.S. we have discussed infinite sequences before:
http://archives.free.net.ph/message/20080716.025311.1b54b65e.da.html
That is Dan's baby. You should probably ask him. I think a reason why it's undocumented is that the basic concepts of a "sequence" requires a size. An infinite view does not have a size. We'll have to refine the concepts to take in infinite views. I do like your lazy_sequence idea. Please coordinate with Dan on how to proceed with these infinite views. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net