Re: [Dev-C++] Problem passing a reference in a constructor
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2003-10-04 22:45:46
|
Daniel K. O. wrote: > BUT if I use a vector<>, it doesn't work: > > --- > vector<Bola> balls; > > ball.push_back(Bola(...)); > Taco taco(balls[0]); > --- Uh... never mind, guys... I just realized I forgot to use a "balls.reserve(...)" to avoid reallocation , cause I use more push_back's after it... Daniel K. O. |