From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15970 invoked by alias); 21 Apr 2003 08:11:15 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15962 invoked from network); 21 Apr 2003 08:11:14 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 21 Apr 2003 08:11:14 -0000 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 197WOQ-0003Wb-00 for gcc-help@gnu.org; Mon, 21 Apr 2003 04:11:14 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 197WOM-0004vR-00 for gcc-help@gnu.org; Mon, 21 Apr 2003 04:11:11 -0400 Received: from r-a117-bur.univ-avignon.fr ([195.83.163.176] helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197WOM-0004R6-00 for gcc-help@gnu.org; Mon, 21 Apr 2003 04:11:10 -0400 Received: from localhost.localdomain (r-a117-bur [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h3L5AC55001216; Mon, 21 Apr 2003 10:10:12 +0500 Received: (from urazov@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id h3L5ACjY001214; Mon, 21 Apr 2003 10:10:12 +0500 X-Authentication-Warning: localhost.localdomain: urazov set sender to coola@ngs.ru using -f Subject: Re: vector instantiation From: "Andrey R. Urazov" To: Jaap Haitsma , gcc-help@gnu.org In-Reply-To: <20030419151042.5096.qmail@web13403.mail.yahoo.com> References: <20030419151042.5096.qmail@web13403.mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Apr 2003 08:11:00 -0000 Message-Id: <1050901812.1163.5.camel@r-a117-bur> Mime-Version: 1.0 X-Spam-Status: No, hits=-5.6 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,X_AUTH_WARNING version=2.41 X-Spam-Level: X-SW-Source: 2003-04/txt/msg00182.txt.bz2 Le sam 19/04/2003 =C3=A0 20:10, Jaap Haitsma a =C3=A9crit : > Hi Andrey, >=20 > 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