Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-04-29 08:12:14


Alexander Nasonov <alnsn-mycop_at_[hidden]> writes:

> Alexander Nasonov wrote:
>>> Alternatively, you can implement MPL conformant sequence
>>> tuple_sequence<Tuple>. It's not so hard as you can imagine.
>>> (Question to MPL's authors: when it will be documented?).
>
> David Abrahams wrote:
>> Sequence requirements are already documented:
>> http://www.boost.org/libs/mpl/doc/ref/Sequence.html
>
> Yes, you're right, I was able to write *immutable* sequence using only the
> documentation but I had to look at MPL code to see how extensible sequences
> are implemented.

How does that help with your own sequence? It seems to me that (given
a conforming compiler), the concept docs should be sufficient.

>> is an MPL sequence. Of course, a better solution would be to
>> specialize begin/end so that any Boost tuple is *itself* an MPL
>> sequence.
>
> That would be great.

Would you like to propose a patch for the current CVS tuples?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk