Boost logo

Boost :

From: Vukasin Toroman (vtoroman_at_[hidden])
Date: 2004-09-17 14:18:01

> As an aside, this came about because the initial reaction was to do the
> following, which is REALLY bad
> vector<Foo>::iterator iter = find( myFoo.begin(), myFoo.end(),
> shard_ptr(this) );
> It compiles just fine, then quickly crashes when it leaves scope and
> deletes this.

having a shared_ptr of *this* is a unrelated issue (in my view a big
no-no). you can find some info here:

Boost list run by bdawes at, gregod at, cpdaniel at, john at