This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: vector instantiation
- From: "Andrey R. Urazov" <coola at ngs dot ru>
- To: Jaap Haitsma <jaap_haitsma at yahoo dot com>, gcc-help at gnu dot org
- Date: 21 Apr 2003 10:10:12 +0500
- Subject: Re: vector instantiation
- References: <20030419151042.5096.qmail@web13403.mail.yahoo.com>
Le sam 19/04/2003 à 20:10, Jaap Haitsma a écrit :
> Hi Andrey,
>
> I'm not sure if it is allowed to put arrays as a
> parameter of the template. Why don't you make a class
> or a struct which contains this array of 4 size_t's
Because an array of 4 elements is just a particular case. In general
there are n elements and n is known at compile time.
Best regards,
Andrey Urazov