public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Andrey R. Urazov" <coola@ngs.ru>
To: gcc-help@gnu.org
Subject: vector instantiation
Date: Fri, 18 Apr 2003 20:06:00 -0000	[thread overview]
Message-ID: <1050685291.981.5.camel@r-a117-bur> (raw)

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 <vector>

using namespace std;

int main()
{
    vector<size_t[4]> 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<size_t[4]>] »:
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.

             reply	other threads:[~2003-04-18 20:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-18 20:06 Andrey R. Urazov [this message]
2003-04-19  8:44 ` Alex Vinokur
2003-04-19 15:12 ` Jaap Haitsma
2003-04-21  8:11   ` Andrey R. Urazov
2003-04-21 16:24     ` drkm
  -- strict thread matches above, loose matches on Subject: below --
2003-04-17  8:47 Andrey R. Urazov
2003-04-17 11:55 ` Alex Vinokur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1050685291.981.5.camel@r-a117-bur \
    --to=coola@ngs.ru \
    --cc=gcc-help@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).