Tuples: draft 1

Chris Jefferson caj@cs.york.ac.uk
Thu Oct 21 00:31:00 GMT 2004


Here is a first draft of the tuple class.

Attached are:
maketuples.c : makes the tuple header
tuples.hpp : the tuple header
test_tuples.cpp : some tests

Whats missing:
1) Need to put the tuples into a namespace. Which one?
2) I declare "extern shallow_assign ignore". This needs to be actually 
created somewhere..
3) Lots most tests, and also a big bunch of "not compiling" tests.
4) While I think the header is at least passably readable, there are 
some strange formattings, and in particular lots of very, very long lines.

It is my intension to continue with the test suite over the next couple 
of days and fill it out much more completely, in particular with all the 
things that shouldn't compile, and being careful that I don't do 
anything wrong with either constness or references. However, I expect 
that both tuples.hpp and maketuples.c will remain at least broadly the 
same, so if anyone wants to make any comments, either for or against 
this form of header generation, this should hopefully be enough to get 
started with :)

Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: maketuples.c
Type: text/x-csrc
Size: 13971 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041021/c4ae98e6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_tuples.cpp
Type: text/x-c++src
Size: 2325 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041021/c4ae98e6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tuples.hpp
Type: text/x-c++hdr
Size: 38759 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041021/c4ae98e6/attachment-0002.bin>


More information about the Libstdc++ mailing list