From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20685 invoked by alias); 19 Apr 2003 15:12:02 -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 20676 invoked from network); 19 Apr 2003 15:12:01 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 19 Apr 2003 15:12:01 -0000 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 196u0X-0006rD-00 for gcc-help@gnu.org; Sat, 19 Apr 2003 11:12:01 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 196u0D-00079r-00 for gcc-help@gnu.org; Sat, 19 Apr 2003 11:11:42 -0400 Received: from web13403.mail.yahoo.com ([216.136.175.61]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 196tzH-0006FO-00 for gcc-help@gnu.org; Sat, 19 Apr 2003 11:10:43 -0400 Message-ID: <20030419151042.5096.qmail@web13403.mail.yahoo.com> Received: from [193.67.187.139] by web13403.mail.yahoo.com via HTTP; Sat, 19 Apr 2003 08:10:42 PDT Date: Sat, 19 Apr 2003 15:12:00 -0000 From: Jaap Haitsma Subject: Re: vector instantiation To: "Andrey R. Urazov" , gcc-help@gnu.org In-Reply-To: <1050685291.981.5.camel@r-a117-bur> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=-2.7 required=5.0 tests=IN_REP_TO,SPAM_PHRASE_01_02 version=2.41 X-Spam-Level: X-SW-Source: 2003-04/txt/msg00172.txt.bz2 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 Jaap --- "Andrey R. Urazov" wrote: > Hello, > > Concerning the problem of instantiation of STL > vector with the template > parameter size of array. Sorry, but I forgot to > include the program code > in my posting. Here it is: > > #include > > using namespace std; > > int main() > { > vector v(10); > > return 0; > } > > > > > And compiling this with gcc-3.2.2 I get: > > /usr/include/c++/3.2/bits/stl_vector.h: Dans > constructor « > std::vector<_Tp, > _Alloc>::vector(unsigned int) [with _Tp = > size_t[4], _Alloc = > std::allocator] »: > test.cpp:7: instancié à partir d'ici > /usr/include/c++/3.2/bits/stl_vector.h:342: ISO C++ > interdit le > transtypage > vers un type tableau « size_t[4] » > > > P.S. Just in case, please CC me since I'm not on the > mailing list. Thank > you. > > Best regards, > Andrey Urazov. > __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com