by =?ISO-8859-1?Q?=C9ric_Malenfant?= <Eric.Malenfant@[EMAIL PROTECTED]
>
Apr 30, 2008 at 05:04 PM
german diago wrote:
> Hello. I'm trying to implement a variadic vector type in c++0x with
> the variadic templates proposal (in gcc-4.4).
>
> I tried with this, and I wonder why I can't do this.
>
> template <class...Values>
> class vector {
> private:
> //This is not legal
> Values v...;
> ....
> };
>
> I think this should be allowed and a way to access every v would be to
> give v, v2, v3 names to the unpacked parameter pack or something
> similar.
Would tuple<Values> work in that context?
(Disclaimer: I know next to nothing about variadic templates, so
please pardon the possible sillyness of the question)
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]