Topic: Maximum Limit of Tuples
Author: "Sarath" <CSarath@gmail.com>
Date: Tue, 20 Feb 2007 10:31:27 CST Raw View
What's the Maximum Limit of Tuples? In boost library it is 10. Will it
be configurable?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: pete@versatilecoding.com (Pete Becker)
Date: Tue, 20 Feb 2007 20:46:21 GMT Raw View
Sarath wrote:
> What's the Maximum Limit of Tuples? In boost library it is 10. Will it
> be configurable?
>
In TR1, tuples are required to support at least ten members. Currently,
the C++0x version has the same minimum, although there's talk of
increasing it.
--
-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (www.petebecker.com/tr1book)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: dgsteffen@numerica.us (Dave Steffen)
Date: Tue, 20 Feb 2007 22:16:15 GMT Raw View
pete@versatilecoding.com (Pete Becker) writes:
> Sarath wrote:
> > What's the Maximum Limit of Tuples? In boost library it is 10. Will it
> > be configurable?
> >
>
> In TR1, tuples are required to support at least ten
> members. Currently, the C++0x version has the same minimum, although
> there's talk of increasing it.
Question:
IIRC the limit was due to the template and preprocessor
metaprogramming necessary to implement them.
However, I think the variadic template proposal as been more-or-less
accepted... and wouldn't variadic templates make a tuple length
limit irrelevent? (Or, at least, limit the length of tuples to the
length of a variadic template list?)
Just curious (and trying to keep up with all this)... thanks!
----------------------------------------------------------------------
Dave Steffen, Ph.D. Disobey this command!
Software Engineer IV - Douglas Hofstadter
Numerica Corporation
dg@steffen a@t numerica d@ot us (remove @'s to email me)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: pete@versatilecoding.com (Pete Becker)
Date: Wed, 21 Feb 2007 00:18:40 GMT Raw View
Dave Steffen wrote:
> pete@versatilecoding.com (Pete Becker) writes:
>
>> Sarath wrote:
>>> What's the Maximum Limit of Tuples? In boost library it is 10. Will it
>>> be configurable?
>>>
>> In TR1, tuples are required to support at least ten
>> members. Currently, the C++0x version has the same minimum, although
>> there's talk of increasing it.
>
> Question:
>
> IIRC the limit was due to the template and preprocessor
> metaprogramming necessary to implement them.
>
> However, I think the variadic template proposal as been more-or-less
> accepted... and wouldn't variadic templates make a tuple length
> limit irrelevent? (Or, at least, limit the length of tuples to the
> length of a variadic template list?)
>
Yes, that's why there's talk of increasing the limit.
--
-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (www.petebecker.com/tr1book)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]