From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20784 invoked by alias); 17 Apr 2003 11:55:36 -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 20772 invoked from network); 17 Apr 2003 11:55:36 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 17 Apr 2003 11:55:36 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1967yb-0006Ln-00 for ; Thu, 17 Apr 2003 13:54:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-help@gcc.gnu.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1967ya-0006LY-00 for ; Thu, 17 Apr 2003 13:54:48 +0200 From: "Alex Vinokur" Subject: Re: vector instantiation Date: Thu, 17 Apr 2003 11:55:00 -0000 Message-ID: References: <1050558071.1020.15.camel@r-a117-bur> X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 X-SW-Source: 2003-04/txt/msg00156.txt.bz2 "Andrey R. Urazov" wrote in message news:1050558071.1020.15.camel@r-a117-bur... > Hello, > > I tried to declare vector with the template parameter of array and, > unfortunately, the compilation failed with the following error message > (I'm using gcc-3.2.2): > > /usr/include/c++/3.2/bits/stl_vector.h: In constructor `std::vector<_Tp, > _Alloc>::vector(unsigned int) [with _Tp = size_t[4], _Alloc = > std::allocator]': > test.cpp:7: instantiated from here > /usr/include/c++/3.2/bits/stl_vector.h:342: ISO C++ forbids casting to > an array > type `size_t[4]' > Could you send your code to news:gmane.comp.gcc.help ? > I think this is incorrect behavior. But, of course, I may be wrong. Any > ideas? Is permitted to declare STL containers with the elements of > arrays in the C++ standard? > > Best regards, > Andrey Urazov. > > ================================= Alex Vinokur mailto:alexvn@connect.to http://www.simtel.net/pub/oth/19088.html =================================