
Douglas Gregor wrote:
On Aug 6, 2006, at 7:10 AM, Ion Gaztañaga wrote:
And what if Values parameter pack is instantiated as a sequence of the same type? Should we make tuple<int, int> and array<int, 2> the same type?
They should be the same type, but there should be a common interface that allows one to act on both types in the same way. IIRC, array<> works with tuple_size, tuple_element, and get, so we already have that interface.
Thanks for all the replies. Variadic templates look _very_ exciting. When I saw in pre-Berlin evolution state that it in thte "Not ready for C++0x, but encourage work to continue" work, I was very disappointed. But now that after Berlin the state has improved and with the prototype compiler, I hope we can get it into C++0x. Thanks, Ion