help with vector code
Paolo Carlini
pcarlini@unitus.it
Tue Dec 11 13:22:00 GMT 2001
Benjamin Kosnik wrote:
> gives:
> vec_tester.cc: In function `void test01()':
> vec_tester.cc:18: cannot convert `void test01()::vector_type' to `int'
> in
> converting
>
> Ok, first of all, what's up with the error message here? Is it
> truncated?
This is *weird* !!
> Second of all, isn't it vector_type::reference converting to same? What
> am I missing here? I suspect it's simple, and I'm sorry for bugging
> y'all.
I suspect that the problem is in the costructor:
void test01()
{
/*
*/
vector_type v_c[max]; <== vector_type v_c(max);
/*
*/
}
Cheers,
Paolo.
More information about the Libstdc++
mailing list