al davis wrote: > On Friday 12 May 2006 18:24, Ilia Mirkin wrote: >> >> vector<int> x; >> x[0] = 5; > > Your code is wrong. The vector x is of size zero. It should > crash. > > You need: > vector<int> x; > x.reserve(5); > x[0] = 5;
You mean resize(5). After a reserve() size is unchanged. [[Though I've seen the OP's note that his example wasn't intended to be complete working code]] -- Cheers, John _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
