This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
vector instantiation
- From: "Andrey R. Urazov" <coola at ngs dot ru>
- To: gcc-help at gnu dot org
- Date: 18 Apr 2003 22:01:31 +0500
- Subject: vector instantiation
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.