From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2008-08-16 23:04:34


On Sat, Aug 16, 2008 at 10:54 PM, Eduardo Panisset
<eduardo.panisset_at_[hidden]> wrote:
> On Sat, Aug 16, 2008 at 9:32 PM, David Abrahams <dave_at_[hidden]> wrote:

[snip]

> I could have one thread calling a clear method of std::vector, while another
> thread was copying a shared_ptr placed in the same std::vector.

That would mean you would be sharing the std::vector, which is usually not
allowed. You should synchronize the std::vector.

> Thanks!

-- 
Felipe Magno de Almeida