Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] Problem with reserve for vector of weak_ptr
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-05-28 12:08:18


On 28/05/2010 17:45, Gaetan Gaumer wrote:
> Resize can trim the vector and I don't want it.
> I think "reserve" is the right function for my need.

But in your example vector has size 0. You are assigning values out of
bounds, or am I missing something?

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net